统一在store.js中管理baseUrl
This commit is contained in:
1 parent
dfc26aedea
commit
44f3d57884
5 files changed
+79
-69
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user