diff --git a/src/main.ts b/src/main.ts index e7fed97..6f02ee9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,6 +4,7 @@ import install from './install' import './permission' import './styles/index.scss' import 'virtual:svg-icons-register' +import configs from './config/index' window._AMapSecurityConfig = { securityJsCode:'e8b6cb44e8e431d68052c8e10db99264', @@ -11,5 +12,6 @@ window._AMapSecurityConfig = { const app = createApp(App) app.use(install) +app.provide('base_url', configs.baseUrl+configs.urlPrefix); app.mount('#app') app.config.warnHandler = () => null \ No newline at end of file diff --git a/src/views/app_update/edit.vue b/src/views/app_update/edit.vue index 564a683..b18de8c 100644 --- a/src/views/app_update/edit.vue +++ b/src/views/app_update/edit.vue @@ -54,9 +54,11 @@ style="width: 100%" drag :headers="{ Token: userStore.token }" - action="https://worker-task.lihaink.cn/adminapi/upload/file" + :action="base_url + '/upload/file'" :limit="1" :on-success="handleFile" + :on-exceed="handleExceed" + ref="upload" >
文件拖入或点击上传
@@ -100,6 +102,7 @@