diff --git a/packages/euler/components.d.ts b/packages/euler/components.d.ts index 2addf9e0722f68cc10332dc0d8eac57dabf768e9..6ffaf080bc321b9f7025ef01ab816688e0eda63d 100644 --- a/packages/euler/components.d.ts +++ b/packages/euler/components.d.ts @@ -24,10 +24,14 @@ declare module 'vue' { ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] + ElInput: typeof import('element-plus/es')['ElInput'] + ElOption: typeof import('element-plus/es')['ElOption'] + ElPagination: typeof import('element-plus/es')['ElPagination'] ElProgress: typeof import('element-plus/es')['ElProgress'] ElRadio: typeof import('element-plus/es')['ElRadio'] ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElRow: typeof import('element-plus/es')['ElRow'] + ElSelect: typeof import('element-plus/es')['ElSelect'] ElSwitch: typeof import('element-plus/es')['ElSwitch'] ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] diff --git a/packages/euler/src/router.ts b/packages/euler/src/router.ts index dbc434bba0adbea9f37d95cc20769affee7f1150..82ba9e3910649a17fc85b76e51150accefe71256 100644 --- a/packages/euler/src/router.ts +++ b/packages/euler/src/router.ts @@ -366,14 +366,15 @@ router.beforeEach((to) => { // 首次进入判断移动端 const cancel = router.beforeEach((to) => { cancel(); + const isPhone = testIsPhone(); + const useCommon = useCommonStore(); + useCommon.setDevice(!isPhone); if ( to.path.endsWith('/overview') && !to.path.includes('/mobile') && - testIsPhone() + isPhone ) { - const useCommon = useCommonStore(); const path = useCommon.language === 'zh' ? '/zh/mobile' : '/en/mobile'; - useCommon.setDevice(false); return { path }; } }); diff --git a/packages/gauss/components.d.ts b/packages/gauss/components.d.ts index 597cdb4ce1fd02706e9ef83186a491376b106377..2d7c9e6640b2d0575e38674a489062b3d640e398 100644 --- a/packages/gauss/components.d.ts +++ b/packages/gauss/components.d.ts @@ -19,7 +19,9 @@ declare module 'vue' { ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] + ElInput: typeof import('element-plus/es')['ElInput'] ElOption: typeof import('element-plus/es')['ElOption'] + ElPagination: typeof import('element-plus/es')['ElPagination'] ElProgress: typeof import('element-plus/es')['ElProgress'] ElRadio: typeof import('element-plus/es')['ElRadio'] ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] diff --git a/packages/gauss/src/router.ts b/packages/gauss/src/router.ts index 1ac145b81210224bb0c89b603837a86cf5647f4f..d1a99f9e85956c1ef4d1520879e771a731e37b55 100644 --- a/packages/gauss/src/router.ts +++ b/packages/gauss/src/router.ts @@ -220,14 +220,15 @@ router.beforeEach((to) => { // 首次进入判断移动端 const cancel = router.beforeEach((to) => { cancel(); + const isPhone = testIsPhone(); + const useCommon = useCommonStore(); + useCommon.setDevice(!isPhone); if ( to.path.endsWith('/overview') && !to.path.includes('/mobile') && - testIsPhone() + isPhone ) { - const useCommon = useCommonStore(); const path = useCommon.language === 'zh' ? '/zh/mobile' : '/en/mobile'; - useCommon.setDevice(false); return { path }; } }); diff --git a/packages/gauss/vite.config.js b/packages/gauss/vite.config.js index f6e917c73fa6ac221c9dc20ad1db0b9b3298bf24..7cff62708d37820ee964a4c85dff45b9feeab578 100644 --- a/packages/gauss/vite.config.js +++ b/packages/gauss/vite.config.js @@ -44,7 +44,7 @@ export default defineConfig({ server: { proxy: { '/query': { - target: 'https://omapi.osinfra.cn/', + target: 'https://dsapi.osinfra.cn/', changeOrigin: true, }, '/ip-api/': { diff --git a/packages/mindspore/src/router.ts b/packages/mindspore/src/router.ts index d11be4724e94cb2d8be27cd43dd2e46ec5f860d3..b28d5fb841fb25940b7aac4a6573d0820d418425 100644 --- a/packages/mindspore/src/router.ts +++ b/packages/mindspore/src/router.ts @@ -85,14 +85,15 @@ export const router = createRouter({ // 首次进入判断移动端 const cancel = router.beforeEach((to) => { cancel(); + const isPhone = testIsPhone(); + const useCommon = useCommonStore(); + useCommon.setDevice(!isPhone); if ( to.path.endsWith('/overview') && !to.path.includes('/mobile') && - testIsPhone() + isPhone ) { - const useCommon = useCommonStore(); const path = useCommon.language === 'zh' ? '/zh/mobile' : '/en/mobile'; - useCommon.setDevice(false); return { path }; } });