From 1b8ed4768feeb6433cef55ea8e7c4ad7070c151c Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期三, 16 七月 2025 13:42:13 +0800 Subject: [PATCH] OQC检验 --- store/index.js | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/store/index.js b/store/index.js index fb8e2fe..9f088a0 100644 --- a/store/index.js +++ b/store/index.js @@ -2,31 +2,31 @@ import Vuex from 'vuex' //寮曞叆vuex鎻掍欢 杩涜鐘舵�佺鐞� -Vue.use(Vuex) +Vue.use(Vuex) const store = new Vuex.Store({ - state: { + state: { id: 'id', - serverInfo:{//鏈嶅姟淇℃伅 - networkFlag:'鍐呯綉', - serverURLInt:'http://192.168.11.251:10054',//鏈嶅姟鍣ㄤ綋妫� 10.0.1.104:10054 - serverURL:'http://localhost:10054',//鏈湴璋冭瘯鍦板潃 - serverAPI:'http://localhost:5184/api',//褰撳墠姝e湪浣跨敤鏈湴 - // serverAPI:'http://192.168.1.92:10054/api',//褰撳墠姝e湪浣跨敤鐨勬湇鍔″櫒 + serverInfo: { //鏈嶅姟淇℃伅 + networkFlag: '鍐呯綉', + serverURLInt: 'http://192.168.11.251:10054', //鏈嶅姟鍣ㄤ綋妫� 10.0.1.104:10054 + serverURL: 'http://localhost:10054', //鏈湴璋冭瘯鍦板潃 + serverAPI:'http://localhost:10054/api',//褰撳墠姝e湪浣跨敤鏈湴 + //serverAPI: 'http://192.168.1.92:10054/api', //褰撳墠姝e湪浣跨敤鐨勬湇鍔″櫒 } }, mutations: { - test(state,id){ + test(state, id) { state.id = id; } }, - getters:{ - currentColor(state){ - return state.colorList[state.colorIndex] - } - }, + getters: { + currentColor(state) { + return state.colorList[state.colorIndex] + } + }, actions: { // lazy loading openid } }) -export default store +export default store \ No newline at end of file -- Gitblit v1.9.3