skyouc
2025-06-22 fee38f39e36bcda9924f5b26dca609dda6b331e0
zy-asrs-admin/src/config.js
@@ -1,26 +1,47 @@
import { reactive, inject } from 'vue';
export const globalState = reactive({
    url: 'http://127.0.0.1:8081/wms',
    token: '',
    user: null,
    locale: 'zh_CN', // 默认语言
    currentHost: null,
    localeList: {//语言列表
        'zh_CN': {
            desc: '简体中文'
        },
        'en_US': {
            desc: 'English'
        }
    },
    localeData: {}
});
export const logout = () => {
    globalState.token = null;
    globalState.user = null;
    globalState.currentHost = null;
    localStorage.removeItem('token')
    localStorage.removeItem('user')
import { reactive, inject } from 'vue';
export const globalState = reactive({
    url: 'http://192.168.8.14:8081/wms',
    token: '',
    user: null,
    locale: 'zh_CN', // 默认语言
    currentHost: null,
    localeList: {//语言列表
        'zh_CN': {
            desc: '简体中文'
        },
        'zh_HK': {
            desc: '繁体中文'
        },
        'en_US': {
            desc: '英语'
        },
        'es_ES': {
            desc: '西班牙语'
        },
        'ar_EG': {
            desc: '阿拉伯语'
        },
        'de_DE': {
            desc: '德语'
        },
        'fr_FR': {
            desc: '法语'
        },
        'ru_RU': {
            desc: '俄罗斯语'
        },
        'ko_KR': {
            desc: '韩语'
        },
    },
    localeData: {}
});
export const logout = () => {
    globalState.token = null;
    globalState.user = null;
    globalState.currentHost = null;
    localStorage.removeItem('token')
    localStorage.removeItem('user')
}