store/index.js
@@ -2,7 +2,7 @@ import Vuex from 'vuex' //引入vuex插件 进行状态管理 Vue.use(Vuex) Vue.use(Vuex) const store = new Vuex.Store({ state: { id: 'id', @@ -10,7 +10,8 @@ networkFlag:'内网', serverURLInt:'http://10.0.2.2:10054',//服务器体检 10.0.1.104:10054 serverURL:'http://10.0.2.2:10054',//本地调试地址 serverAPI:'http://localhost:10054/api',//当前正在使用的服务器,默认为外网 localhost // serverAPI:'http://localhost:10054/api',//当前正在使用的服务器,默认为外网 localhost serverAPI:'http://192.168.1.223:10054/api', } }, mutations: {