NVUE页面调试经常报错,不知道为什么

This commit is contained in:
2022-02-11 14:43:22 +08:00
parent 8aebe0eef5
commit efcfa00545
12 changed files with 315 additions and 145 deletions

View File

@@ -3,35 +3,17 @@ import {
createRouter
} from 'uni-simple-router';
import store from '@/store/index'
// CALL 页面必须是nvue但是NVUE 不支持webpack的 ROUTES 注入
// CALL 页面必须是nvue但是NVUE 不支持webpack的 ROUTES 注入
// https://github.com/SilurianYang/uni-read-pages/issues/20
// #ifdef APP-NVUE
// #ifdef APP-NVUE
const ROUTES = [{
'path': '/pages/im/private/call',
'name': 'imPrivateCall'
},{
'path': '/pages/im/private/chat',
'name': 'imPrivateChat'
},{
'path': '/pages/im/group/chat',
'name': 'imGroupChat'
},{
'path': '/pages/im/group/info',
'name': 'imGroupInfo'
},{
'path': '/pages/im/group/index',
'name': 'imGroups'
},{
'path': '/pages/im/group/create',
'name': 'imGroupCreate'
},{
'path': '/pages/im/group/users',
'name': 'imGroupUsers'
},{
'path': '/pages/im/group/announcement',
'name': 'imGroupAnnouncement'
}]
"path": "/pages/im/private/call"
}, {
"path": "/pages/im/private/chat"
}, {
"path": "/pages/im/group/chat"
}];
// #endif
const router = createRouter({