feat: 🚀 提示框层级调整

This commit is contained in:
2025-04-16 16:18:24 +08:00
parent bbf953f47a
commit 186bfcdcd7
16 changed files with 201 additions and 91 deletions

View File

@@ -3,7 +3,7 @@
<Toolbar v-if="!hideToolBar" class="editor-toolbar" :editor="editorRef" :default-config="toolbarConfig" :mode="mode" />
<Editor
v-model="valueHtml"
class="editor-content'"
class="editor-content"
:style="{ height }"
:mode="mode"
:default-config="editorConfig"
@@ -32,7 +32,11 @@ const $router = useRouter();
const routerValueName: string = $router.currentRoute.value.name as string;
const routerObj: any = {
articleEditIndex: "article",
productEditIndex: "product"
productEditIndex: "product",
bannerListIndex: "banner",
downloadListIndex: "download",
videoListIndex: "video",
QAListIndex: "QA"
};
const routerName = ref(routerObj[routerValueName]);
// 接收父组件参数,并设置默认值
@@ -108,7 +112,8 @@ props.editorConfig.MENU_CONF!["uploadImage"] = {
const result = await uploadImg(formData, routerName.value);
if (result?.code === 0) {
const { data } = result;
insertFn(import.meta.env.VITE_APP_API_BASE_UPLOAD_URL + data.url);
console.log(data, "==============data====================");
insertFn(import.meta.env.VITE_APP_API_BASE_UPLOAD_URL + data.path);
}
} catch (error) {
console.log(error);