@ganwei-web/ganwei-pc-cli 6.3.3 → 6.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,8 @@ import * as ElementPlusIconsVue from '@element-plus/icons-vue'
20
20
  // @ts-ignore
21
21
  import { adapterInstall } from '@ganwei-web/gw-base-components-plus/element-plus-adapter/dist/ElementPlusAdapter.js'
22
22
  import '@ganwei-web/gw-base-components-plus/element-plus-adapter/dist/ElementPlusAdapter.css'
23
-
23
+ // 权限控制
24
+ import permission from "@ganwei-web/gw-base-components-plus/customDirective/index"
24
25
  const app = createApp(App)
25
26
 
26
27
  // 注册 Element Plus 图标
@@ -43,6 +44,15 @@ app.config.globalProperties.$api = api
43
44
  app.config.globalProperties.myUtils = {
44
45
  configInfoData
45
46
  }
47
+ initApp()
48
+ async function initApp() {
49
+ try {
50
+ await window.permissionList()
51
+ } catch (error) {
52
+ console.log(error)
53
+ }
54
+ /* 创建vue实例--根据自己模块内部加载,以下为示例 start*/
55
+ app.use(router).use(permission, window.packageId, window.routeName).mount("#app");
56
+ /* 创建vue实例--根据自己模块内部加载,以下为示例 end*/
57
+ }
46
58
 
47
- // 挂载应用
48
- app.use(router).mount('#app')
@@ -846,8 +846,8 @@ importers:
846
846
  specifier: ^1.0.1
847
847
  version: 1.0.1
848
848
  '@ganwei-web/gw-base-components-plus':
849
- specifier: ^1.0.1
850
- version: 1.0.20
849
+ specifier: ^1.0.21
850
+ version: 1.0.21
851
851
  '@ganwei-web/gw-base-style-plus':
852
852
  specifier: ^1.0.0
853
853
  version: 1.0.0
@@ -1773,6 +1773,9 @@ packages:
1773
1773
  '@ganwei-web/gw-base-components-plus@1.0.20':
1774
1774
  resolution: {integrity: sha512-ReC2lPhnvaclDAVrg50cXzDyx9/+cOxx5mWQ39gq5sTulCeyfT9rb+RIj79yghE7Nb6pPTFnlugwtz5iyJspaw==}
1775
1775
 
1776
+ '@ganwei-web/gw-base-components-plus@1.0.21':
1777
+ resolution: {integrity: sha512-fQpUSHIF0Gzl5G2djdt9SQ5dGgvF0odFarioL5UHrrPvXSRfGQc5JXbDT0T+7+NX0eu19DFwl4coxtYNAWekAg==}
1778
+
1776
1779
  '@ganwei-web/gw-base-style-plus@1.0.0':
1777
1780
  resolution: {integrity: sha512-ilwU5GLVz8s8cbgCyQ9ccVwt4lHecYxq8Vmnp64rrOKrdYiqxOwKf3ZlPX6N8pvLLEgXzH0x9Pc0sGO+rcMqkg==}
1778
1781
 
@@ -5517,6 +5520,8 @@ snapshots:
5517
5520
 
5518
5521
  '@ganwei-web/gw-base-components-plus@1.0.20': {}
5519
5522
 
5523
+ '@ganwei-web/gw-base-components-plus@1.0.21': {}
5524
+
5520
5525
  '@ganwei-web/gw-base-style-plus@1.0.0': {}
5521
5526
 
5522
5527
  '@ganwei-web/gw-base-utils-plus@1.0.3': {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ganwei-web/ganwei-pc-cli",
3
- "version": "6.3.3",
3
+ "version": "6.3.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",