Commit f104ae25 by 李伟康

fix(router): 解决移动端设置页面权限验证问题

- 移除主文件中的 VConsole 初始化注释
- 为移动端设置页面添加 noAuth 元数据配置
- 确保设置页面无需身份验证即可访问
1 parent fe2297f6
...@@ -45,7 +45,7 @@ fetchConfig(!isMock).then(res => { ...@@ -45,7 +45,7 @@ fetchConfig(!isMock).then(res => {
// 设置 js中可以访问 $cdn // 设置 js中可以访问 $cdn
Vue.use(cfg) Vue.use(cfg)
window.$fetchConfig = res window.$fetchConfig = res
// if (res.vconsole) new VConsole() if (res.vconsole) new VConsole()
/**登录过期 重新登录 */ /**登录过期 重新登录 */
window.reLogin = () => { window.reLogin = () => {
util.removeLocalStorage('ww_userInfo') util.removeLocalStorage('ww_userInfo')
......
export const mobilePages = { export const mobilePages = {
mobile: [ mobile: [
{ {
name: 'settings' name: 'settings',
meta: {
noAuth: true,
}
}, },
{ {
name: 'report', name: 'report',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!