配置修改
This commit is contained in:
parent
38a3740478
commit
4d552fa3e2
@ -59,6 +59,7 @@
|
|||||||
"@ttou/uview-typings": "^2.0.5",
|
"@ttou/uview-typings": "^2.0.5",
|
||||||
"clipboard": "^2.0.11",
|
"clipboard": "^2.0.11",
|
||||||
"dayjs": "^1.11.9",
|
"dayjs": "^1.11.9",
|
||||||
|
"tslib": "^2.6.2",
|
||||||
"uview-plus": "^3.1.36",
|
"uview-plus": "^3.1.36",
|
||||||
"vue": "^3.2.47",
|
"vue": "^3.2.47",
|
||||||
"vue-i18n": "^9.2.2",
|
"vue-i18n": "^9.2.2",
|
||||||
|
|||||||
@ -59,6 +59,9 @@ dependencies:
|
|||||||
dayjs:
|
dayjs:
|
||||||
specifier: ^1.11.9
|
specifier: ^1.11.9
|
||||||
version: 1.11.9
|
version: 1.11.9
|
||||||
|
tslib:
|
||||||
|
specifier: ^2.6.2
|
||||||
|
version: 2.6.2
|
||||||
uview-plus:
|
uview-plus:
|
||||||
specifier: ^3.1.36
|
specifier: ^3.1.36
|
||||||
version: 3.1.36
|
version: 3.1.36
|
||||||
@ -5417,7 +5420,7 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
copy-anything: 2.0.6
|
copy-anything: 2.0.6
|
||||||
parse-node-version: 1.0.1
|
parse-node-version: 1.0.1
|
||||||
tslib: 2.6.1
|
tslib: 2.6.2
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
errno: 0.1.8
|
errno: 0.1.8
|
||||||
graceful-fs: 4.2.11
|
graceful-fs: 4.2.11
|
||||||
@ -6576,8 +6579,8 @@ packages:
|
|||||||
punycode: 2.3.0
|
punycode: 2.3.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/tslib@2.6.1:
|
/tslib@2.6.2:
|
||||||
resolution: {integrity: sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==}
|
resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}
|
||||||
|
|
||||||
/type-detect@4.0.8:
|
/type-detect@4.0.8:
|
||||||
resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==}
|
resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==}
|
||||||
|
|||||||
@ -76,7 +76,7 @@ export default {
|
|||||||
* @param roles 角色数组
|
* @param roles 角色数组
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
hasRoleAnd(roles: Array<string>) {
|
hasRoleAnd(roles: Array<string>): boolean {
|
||||||
return roles.every(item => {
|
return roles.every(item => {
|
||||||
return authRole(item)
|
return authRole(item)
|
||||||
})
|
})
|
||||||
|
|||||||
@ -1,19 +1,24 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"strict": true,
|
"importHelpers": true,
|
||||||
"forceConsistentCasingInFileNames":true,
|
"strict": true,
|
||||||
"outDir": "dist/compiled",
|
"forceConsistentCasingInFileNames": true,
|
||||||
"allowJs": true,
|
"outDir": "dist/compiled",
|
||||||
"lib": ["es2017"],
|
"baseUrl": "./",
|
||||||
"baseUrl": "./",
|
"allowSyntheticDefaultImports": true,
|
||||||
"paths": {
|
"allowJs": true,
|
||||||
"@": [
|
"jsx": "preserve",
|
||||||
"src"
|
"moduleResolution": "node",
|
||||||
],
|
"module": "ES2022",
|
||||||
"@/*": [
|
"lib": ["ES2020", "dom"],
|
||||||
"src/*"
|
"declaration": true,
|
||||||
],
|
"paths": {
|
||||||
"vue": ["node_modules/vue"]
|
"@": ["src"],
|
||||||
},
|
"@/*": ["src/*"],
|
||||||
|
"/@/*": ["src/*"],
|
||||||
|
"vue": ["node_modules/vue"],
|
||||||
|
"tslib" : ["node_modules/tslib/tslib.d.ts"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user