schangxiang@126.com
2025-09-02 77893a9594023e0c007b73d128fe94d1b56ff547
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export default {
    state: {
        
        ip: 'localhost', //测试环境的IP
        port: '1053', //测试环境的端口号
        //*/
        /*
        ip: '192.168.0.3',//正式环境的IP
        port: '1025' //正式环境的端口号
        //*/
    },
    mutations: {
        //接口ip调整
        SET_IP: (state, ip) => {
            state.ip = ip;
        }
    },
    actions: {
        //触发调整的方法
        setIp({
            commit
        }, ip) {
            commit('SET_IP', ip);
        }
    }
}