Commit bd543110 authored by 周远喜's avatar 周远喜

环境修改

parent f0101023
const systemApi = { const systemApi = {
local: 'localhost', local: 'localhost',
product: '39.100.148.168', dev: '39.100.148.168',
dev:"49.232.68.61", product:"49.232.68.61",
aps:'47.92.102.113' aps:'47.92.102.113'
} }
//环境切换(只修改此处): //环境切换(只修改此处):
let address=systemApi.product; let address=systemApi.dev;
//let address=systemApi.product; //let address=systemApi.product;
//let address=systemApi.local; //let address=systemApi.local;
......
...@@ -7,7 +7,9 @@ export const state=()=>({ ...@@ -7,7 +7,9 @@ export const state=()=>({
userInfo:{ userInfo:{
userId:0, userId:0,
userName:"" userName:""
} },
siteConfig:{},
defaultConfig:{},
}) })
export const getters={ export const getters={
dictionaryByKey: (state) => (key) => { dictionaryByKey: (state) => (key) => {
...@@ -50,6 +52,9 @@ export const mutations={ ...@@ -50,6 +52,9 @@ export const mutations={
setDictionary(state, dictionary) { setDictionary(state, dictionary) {
state.dictionary = dictionary; state.dictionary = dictionary;
}, },
setSiteConfig(state,config){
state.siteConfig=config;
}
} }
export const actions={ export const actions={
...@@ -71,6 +76,20 @@ export const actions={ ...@@ -71,6 +76,20 @@ export const actions={
} }
} }
commit("setDictionary", map); commit("setDictionary", map);
},
loadSiteConfig(){
// let params={
// pageSize:2,
// conditions:[{
// "fieldName":"key",
// "fieldValue":"a,b",
// "conditionalType":"In",
// },]
// }
// let {result} = await Api.post(`${systemUrl}/config/list`,params);
// if(result.length>1){
// conm
// }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment