diff --git a/src/plugins/http-fetch.ts b/src/plugins/http-fetch.ts index df9da37b..7a4a8849 100644 --- a/src/plugins/http-fetch.ts +++ b/src/plugins/http-fetch.ts @@ -198,7 +198,7 @@ function beforeRequest(options: OptionsType): OptionsType | Promise { if (options.method === 'get') return options; // 非get参数提交 - let body = options.data + let body = options.data; if (body instanceof FormData) { options.body = body; } else if (body) { diff --git a/src/router/index.ts b/src/router/index.ts index 4ac48d3f..b16ea27c 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -182,7 +182,12 @@ router.beforeEach(async (to, from, next) => { next({ name: 'Index' }); } - const token = getToken(); + let token = getToken(); + + // 免用户登录认证 + if (!appStore.loginAuth) { + token = '== Not Login Auth =='; + } // 没有token if (!token) { diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts index f44eae2f..fe11126c 100644 --- a/src/store/modules/app.ts +++ b/src/store/modules/app.ts @@ -20,6 +20,8 @@ type AppStore = { buildTime: string; /**系统引导使用 */ bootloader: boolean; + // 用户登录认证 + loginAuth: boolean; // 序列号 serialNum: string; /**应用版权声明 */ @@ -52,6 +54,7 @@ const useAppStore = defineStore('app', { version: `-`, buildTime: `-`, bootloader: false, + loginAuth: false, serialNum: `-`, copyright: `Copyright ©2023 For ${import.meta.env.VITE_APP_NAME}`, logoType: 'icon', @@ -85,6 +88,7 @@ const useAppStore = defineStore('app', { if (this.bootloader) { removeToken(); } + this.loginAuth = res.data.loginAuth === 'true'; this.serialNum = res.data.serialNum; this.appName = res.data.title; this.copyright = res.data.copyright; diff --git a/src/views/ne/neQuickSetup/components/Para5GForm.vue b/src/views/ne/neQuickSetup/components/Para5GForm.vue index b4528fb7..84032680 100644 --- a/src/views/ne/neQuickSetup/components/Para5GForm.vue +++ b/src/views/ne/neQuickSetup/components/Para5GForm.vue @@ -50,9 +50,10 @@ let fromState = ref({ ims_sip_ip: '192.168.8.110', upf_type: 'LightUPF', upf_driver_type: 'vmxnet3', - upf_card_name: 'eth0', + upfn3_card_name: 'eth0', upfn3_pci: '0000:00:00.0', upfn3_mac: '00:00:00:00:00:00', + upfn6_card_name: 'eth0', upfn6_pci: '0000:00:00.0', upfn6_mac: '00:00:00:00:00:00', }, @@ -243,7 +244,12 @@ watch( - + + + + + vmxnet3 + dpdk + host + + + - + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + -