mooho-base-admin-plus 2.10.2 → 2.10.3

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "2.10.2",
4
+ "version": "2.10.3",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -186,7 +186,7 @@
186
186
  </div>
187
187
  </template>
188
188
  <script>
189
- import router from '../../router';
189
+ import { useRouter } from 'vue-router';
190
190
  import modelApi from '../../api/model';
191
191
  import applicationApi from '../../api/application';
192
192
  import processInstApi from '../../api/processInst';
@@ -229,6 +229,8 @@
229
229
  },
230
230
  computed: {},
231
231
  async mounted() {
232
+ let router = useRouter();
233
+
232
234
  console.log('router.currentRoute.value.fullPath', router.currentRoute.value.fullPath);
233
235
  console.log('this.userPermissions', this.userPermissions);
234
236
  console.log("url + '$' + key", router.currentRoute.value.fullPath.substr(1).split('?')[0] + '$' + 'create');