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

环境修改

parent f0101023
const systemApi = {
local: 'localhost',
product: '39.100.148.168',
dev:"49.232.68.61",
dev: '39.100.148.168',
product:"49.232.68.61",
aps:'47.92.102.113'
}
//环境切换(只修改此处):
let address=systemApi.product;
let address=systemApi.dev;
//let address=systemApi.product;
//let address=systemApi.local;
......
......@@ -7,7 +7,9 @@ export const state=()=>({
userInfo:{
userId:0,
userName:""
}
},
siteConfig:{},
defaultConfig:{},
})
export const getters={
dictionaryByKey: (state) => (key) => {
......@@ -50,6 +52,9 @@ export const mutations={
setDictionary(state, dictionary) {
state.dictionary = dictionary;
},
setSiteConfig(state,config){
state.siteConfig=config;
}
}
export const actions={
......@@ -71,6 +76,20 @@ export const actions={
}
}
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