diff --git a/.env.dev b/.env.dev index 6dc7127..4163f6a 100644 --- a/.env.dev +++ b/.env.dev @@ -12,7 +12,7 @@ VITE_ROUTER_BASE=/ VITE_ROUTER_HISTORY=hash # api -VITE_API_BASIC=http://10.10.1.6:8071 +VITE_API_BASIC=https://jinshan.nantong.info VITE_API_HTTP=/api/v1/ # storage VITE_STORAGE_NAMESPACE = gin-admin_local_ \ No newline at end of file diff --git a/.env.prod b/.env.prod index 1af1d6e..5fc0520 100644 --- a/.env.prod +++ b/.env.prod @@ -11,7 +11,7 @@ VITE_PERMISSION=true VITE_ROUTER_HISTORY=hash # api -VITE_API_BASIC=/ +VITE_API_BASIC=https://jinshan.nantong.info VITE_API_HTTP=/api/v1/ # storage diff --git a/src/components/GxUpload/index.vue b/src/components/GxUpload/index.vue index 0e9516f..e6a2aad 100644 --- a/src/components/GxUpload/index.vue +++ b/src/components/GxUpload/index.vue @@ -136,6 +136,7 @@ const handleChange = ({ file, fileList: updatedList }) => { // 修复自定义上传方法 const handleCustomRequest = async (options) => { + console.log("==options",options) const { file, onProgress, onSuccess, onError } = options; try { diff --git a/src/utils/request.js b/src/utils/request.js index 84f599d..125f4ee 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -10,6 +10,7 @@ const MSG_ERROR_KEY = Symbol('GLOBAL_ERROR') const options = { enableAbortController: true, interceptorRequest: (request) => { + console.log('interceptorRequest', request) const userStore = useUserStore() const isLogin = userStore.isLogin const token = userStore.token diff --git a/src/views/pages/activity/components/EditDialog.vue b/src/views/pages/activity/components/EditDialog.vue index 97504ec..e21543e 100644 --- a/src/views/pages/activity/components/EditDialog.vue +++ b/src/views/pages/activity/components/EditDialog.vue @@ -21,7 +21,7 @@ - + @@ -36,6 +36,12 @@ style="width: 100%;" /> + + + + + spliceUrl(item)) : [], status: 1