feat: 🚀 优化富文本多张图片上传
This commit is contained in:
@@ -2,7 +2,7 @@ ENV = 'dev'
|
||||
|
||||
VITE_APP_API_BASEURL =https://dev.ow.f2b211.com/admapi/v1
|
||||
#前端回显图片之类的地址
|
||||
VITE_APP_API_BASE_UPLOAD_URL =https://dev.ow.f2b211.com
|
||||
VITE_APP_API_BASE_UPLOAD_URL =https://dev.ow.f2b211.com/
|
||||
# 本地环境
|
||||
VITE_USER_NODE_ENV = development
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
ENV = 'production'
|
||||
VITE_APP_API_BASEURL =https://ow.f2b211.com/admapi/v1
|
||||
VITE_APP_API_BASEURL =https://orico.com.cn/admapi/v1
|
||||
#前端回显图片之类的地址
|
||||
# 线上环境
|
||||
VITE_USER_NODE_ENV = production
|
||||
#前端回显图片之类的地址
|
||||
VITE_APP_API_BASE_UPLOAD_URL =https://ow.f2b211.com/
|
||||
VITE_APP_API_BASE_UPLOAD_URL =https://orico.com.cn/
|
||||
|
||||
# 是否启用 gzip 或 brotli 压缩打包,如果需要多个压缩规则,可以使用 “,” 分隔
|
||||
# Optional: gzip | brotli | none
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
<el-upload
|
||||
:id="uuid"
|
||||
action="#"
|
||||
:multiple="false"
|
||||
:multiple="true"
|
||||
:show-file-list="false"
|
||||
:http-request="handleHttpUpload"
|
||||
:before-upload="handleBeforeUpload"
|
||||
class="editor-img-uploader"
|
||||
accept=".jpeg,.jpg,.png"
|
||||
accept=".jpeg,.jpg,.png,.gif"
|
||||
>
|
||||
<i ref="uploadRef" class="Plus editor-img-uploader"></i>
|
||||
</el-upload>
|
||||
|
||||
@@ -29,7 +29,6 @@ const handleCreated = (editor: any) => {
|
||||
editorRef.value = editor;
|
||||
};
|
||||
|
||||
console.log(editorRef.value, "=editorRef.value=");
|
||||
const $router = useRouter();
|
||||
const routerValueName: string = $router.currentRoute.value.name as string;
|
||||
const routerObj: any = {
|
||||
|
||||
@@ -271,5 +271,5 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
.el-message__wrapper {
|
||||
z-index: 9999; /* 一个较大的值,确保在抽屉之上 */
|
||||
z-index: 9999 !important; /* 一个较大的值,确保在抽屉之上 */
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@ import { useUserStore } from "@/stores/modules/user";
|
||||
//不同环境的login地址
|
||||
const LOGIN_OBJ: any = {
|
||||
development: "http://localhost:8080/admin/login", //开发环境
|
||||
test: "https://dev.ow.f2b211.com/admin/login", //测试环境
|
||||
production: "https://ow.f2b211.com/admin/login" //生产环境
|
||||
test: "https://dev.orico.com.cn/admin/login", //测试环境
|
||||
production: "https://orico.com.cn/admin/login" //生产环境
|
||||
};
|
||||
/**
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user