|
|
@ -51,14 +51,12 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) { |
|
|
|
const useThemeStore = themeStore() |
|
|
|
const useThemeStore = themeStore() |
|
|
|
useThemeStore.initTheme() |
|
|
|
useThemeStore.initTheme() |
|
|
|
const ua = navigator.userAgent.toLowerCase() |
|
|
|
const ua = navigator.userAgent.toLowerCase() |
|
|
|
|
|
|
|
|
|
|
|
// console.log(ua,'ua');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isMobile = /iphone|android|ipad|mobile/.test(ua) |
|
|
|
const isMobile = /iphone|android|ipad|mobile/.test(ua) |
|
|
|
|
|
|
|
|
|
|
|
if (isMobile) { |
|
|
|
if (isMobile) { |
|
|
|
console.log('手机端') |
|
|
|
console.log('手机端') |
|
|
|
|
|
|
|
// location.href = import.meta.env.VITE_APP_MOBILE_URL
|
|
|
|
} else if (!isMobile) { |
|
|
|
} else if (!isMobile) { |
|
|
|
console.log('电脑端') |
|
|
|
console.log('电脑端') |
|
|
|
|
|
|
|
// location.href = import.meta.env.VITE_APP_PC_URL
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|