ソースを参照

Merge tag 'Hotfix-mo-9' into develop

Finish Hotfix-mo-9
莫绍宝 3 年 前
コミット
6a4c324f52
2 ファイル変更5 行追加1 行削除
  1. 4 0
      src/main.js
  2. 1 1
      src/views/setting/role.vue

+ 4 - 0
src/main.js

@@ -32,6 +32,10 @@ Vue.component('ExportButton', ExportButton);
 import ImportButton from '@/components/Common/import-button.vue'
 Vue.component('ImportButton', ImportButton);
 
+
+Vue.prototype.$fileUrl = process.env.VUE_APP_BASE_API + 'common/file/get?key=';
+Vue.prototype.$imageUrl = process.env.VUE_APP_BASE_API + 'common/img/get?key=';
+
 /**
  * If you don't want to use mock-server
  * you want to use MockJs for mock api

+ 1 - 1
src/views/setting/role.vue

@@ -96,7 +96,7 @@ export default {
   },
   data() {
     return {
-      baseURL: process.env.VUE_APP_BASE_API,
+      imageURL: this.$imageUrl,
       dataList: null, // 列表数据
       listLoading: true, // 列表加载loading
       currentPage: 1, // 当前页码