Browse Source

预览配置

natasha 1 year ago
parent
commit
f9d4c0d67b
2 changed files with 12 additions and 1 deletions
  1. 9 1
      src/App.vue
  2. 3 0
      src/store/index.js

+ 9 - 1
src/App.vue

@@ -105,7 +105,15 @@ export default {
             });
             });
         this.$store.commit('setProviceCity',provinceCityList)
         this.$store.commit('setProviceCity',provinceCityList)
         this.$store.commit('setProviceCityAll',provinceCityListAll)
         this.$store.commit('setProviceCityAll',provinceCityListAll)
-        
+        await getLogin('/OrgServer/Manager/SysConfigManager/GetSysConfig_Preview', {})
+        .then((res) => {
+            if(res.status===1){
+                this.$store.commit('setPreviewUrl',res.preview_server_url)
+            }
+        })
+        .catch(() => {
+            this.loading = false
+        });
     } 
     } 
   },
   },
   mounted(){
   mounted(){

+ 3 - 0
src/store/index.js

@@ -83,6 +83,9 @@ const store = new Vuex.Store({
         },
         },
         setSearchStatusList(state, data) {
         setSearchStatusList(state, data) {
             state.$searchStatusList = data
             state.$searchStatusList = data
+        },
+        setPreviewUrl(state, data) {
+            state.$file_preview_url = data
         }
         }
     },
     },
     modules: {
     modules: {