|
@@ -21,7 +21,8 @@ const routes = [
|
|
|
component: () => import('../pages/face/index.vue'),
|
|
component: () => import('../pages/face/index.vue'),
|
|
|
meta: {
|
|
meta: {
|
|
|
hideInMenu: true,
|
|
hideInMenu: true,
|
|
|
- onlyWeb: true
|
|
|
|
|
|
|
+ onlyWeb: true,
|
|
|
|
|
+ viewport: 'width=device-width, initial-scale=1'
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -443,6 +444,12 @@ router.beforeEach(async (to, from, next) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (to.meta.viewport) {
|
|
|
|
|
+ const meta = document.querySelector('meta[name="viewport"]')
|
|
|
|
|
+ meta.setAttribute('content', to.meta.viewport)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (to.meta && (to.meta.onlyWeb || to.meta.onlyElectron)) {
|
|
if (to.meta && (to.meta.onlyWeb || to.meta.onlyElectron)) {
|
|
|
const electronEnv = isElectron()
|
|
const electronEnv = isElectron()
|
|
|
if (to.meta.onlyWeb && electronEnv) return next('/proxy/openProxy')
|
|
if (to.meta.onlyWeb && electronEnv) return next('/proxy/openProxy')
|