统一在store.js中管理baseUrl

This commit is contained in:
539943419 committed 2024-07-29 14:41:50 +08:00
1 parent dfc26aedea
commit 44f3d57884
5 files changed
+79 -69

No files matched your search

+4 -3
View File
@@ -19,7 +19,7 @@
</n-p>
</n-upload-dragger>
</n-upload>
<n-flex justify="end" style="margin: 10px 0;position:relative">
<n-input-number v-model:value="downloadCredit" placeholder="可下载次数,默认无限" clearable :min="1" :max="2147483647" style="width:max-content"/>
<n-button type="primary" @click="clickUpload">开始上传</n-button>
@@ -94,8 +94,9 @@ var file_Code_Map = ref([]);
var uploadProcess = ref(0);
const baseUrl =
location.protocol + "//" + location.hostname + ":" + serverPort + "/";
// const baseUrl = location.protocol + "//" + location.hostname + ":" + serverPort + "/";
const baseUrl = setting.baseUrl
console.log(baseUrl)
// const blob2Uint8Array = function(blob) {