create-young-proj 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. package/dist/index.mjs +42 -2702
  2. package/package.json +1 -1
  3. package/template-vue-admin/Dockerfile +2 -2
  4. package/template-vue-admin/build/custom-plugin.ts +30 -3
  5. package/template-vue-admin/package.json +30 -29
  6. package/template-vue-admin/plugins/{env.ts → init.ts} +6 -1
  7. package/template-vue-admin/src/apis/get.ts +1 -2
  8. package/template-vue-admin/src/apis/patch.ts +0 -1
  9. package/template-vue-admin/src/apis/post.ts +1 -2
  10. package/template-vue-admin/src/auto-components.d.ts +4 -2
  11. package/template-vue-admin/src/auto-imports.d.ts +21 -1
  12. package/template-vue-admin/src/main.ts +2 -0
  13. package/template-vue-admin/src/modules/1-router.ts +4 -22
  14. package/template-vue-admin/src/modules/3-net.ts +6 -2
  15. package/template-vue-admin/src/modules/4-auth.ts +16 -18
  16. package/template-vue-admin/src/modules/5-checkupdate.ts +38 -0
  17. package/template-vue-admin/src/stores/local/index.ts +9 -1
  18. package/template-vue-admin/src/typings/index.ts +1 -38
  19. package/template-vue-admin/src/typings/system.d.ts +46 -0
  20. package/template-vue-admin/src/views/403.vue +2 -1
  21. package/template-vue-admin/src/views/[...all_404].vue +3 -2
  22. package/template-vue-admin/src/views/base/login.vue +2 -1
  23. package/template-vue-admin/src/views/dashboard/[name].vue +7 -2
  24. package/template-vue-admin/src/views/index.vue +7 -1
  25. package/template-vue-admin/src/views/system/api.vue +0 -1
  26. package/template-vue-admin/src/views/system/menuList.vue +1 -2
  27. package/template-vue-admin/src/views/system/role.vue +0 -1
  28. package/template-vue-admin/src/views/system/user.vue +0 -1
@@ -1,12 +1,13 @@
1
1
  <!--
2
2
  * @Author: zhangyang
3
3
  * @Date: 2023-01-04 12:08:08
4
- * @LastEditTime: 2023-01-09 09:38:39
4
+ * @LastEditTime: 2023-05-18 15:50:17
5
5
  * @Description:
6
6
  -->
7
7
  <route lang="yaml">
8
8
  meta:
9
9
  layout: blank
10
+ auth: false
10
11
  </route>
11
12
 
12
13
  <script lang="ts" setup>
@@ -1,17 +1,22 @@
1
1
  <!--
2
2
  * @Author: zhangyang
3
3
  * @Date: 2022-10-26 09:55:45
4
- * @LastEditTime: 2023-01-04 19:44:05
4
+ * @LastEditTime: 2023-05-18 15:50:31
5
5
  * @Description:
6
6
  -->
7
7
  <route lang="yaml">
8
8
  meta:
9
9
  title: 欢迎页
10
- authPath: /dashboard/index
10
+ auth: false
11
11
  </route>
12
12
 
13
13
  <script lang="ts" setup>
14
+ import { generateNavData } from '@/modules/4-auth';
15
+
14
16
  const title = window.__YOUNG_VITE_ENV__.VITE_TITLE || '管理后台';
17
+
18
+ // 每次进入直接拉取最近的菜单数据,同时登录过期时也可触发登录
19
+ generateNavData(true);
15
20
  </script>
16
21
 
17
22
  <template>
@@ -1,9 +1,15 @@
1
1
  <!--
2
2
  * @Author: zhangyang
3
3
  * @Date: 2022-10-25 11:54:36
4
- * @LastEditTime: 2022-12-07 15:33:23
4
+ * @LastEditTime: 2023-05-18 15:49:57
5
5
  * @Description:
6
6
  -->
7
+ <route lang="yaml">
8
+ meta:
9
+ title: 入口
10
+ auth: false
11
+ </route>
12
+
7
13
  <script lang="ts" setup>
8
14
  const router = useRouter();
9
15
  onMounted(() => {
@@ -7,7 +7,6 @@
7
7
  <route lang="yaml">
8
8
  meta:
9
9
  title: 接口管理
10
- authPath: /system/api
11
10
  </route>
12
11
 
13
12
  <script lang="ts" setup>
@@ -7,7 +7,6 @@
7
7
  <route lang="yaml">
8
8
  meta:
9
9
  title: 菜单管理
10
- authPath: /system/menuList
11
10
  </route>
12
11
 
13
12
  <script lang="ts" setup>
@@ -185,7 +184,7 @@ getList()
185
184
  </ElFormItem>
186
185
  <ElFormItem label="路径" prop="component" :rules="form.parentId === 0 ? {} :
187
186
  { message: '请输入合法的路径, eg: /path/page', trigger: 'blur', validator: (_: any, v: string) => v.trim() === '' || /\/(.*)\/(.*)/.test(v) }
188
- ">
187
+ ">
189
188
  <ElInput v-model="form.component" />
190
189
  </ElFormItem>
191
190
  </ElForm>
@@ -7,7 +7,6 @@
7
7
  <route lang="yaml">
8
8
  meta:
9
9
  title: 角色列表
10
- authPath: /system/role
11
10
  </route>
12
11
 
13
12
  <script lang="ts" setup>
@@ -7,7 +7,6 @@
7
7
  <route lang="yaml">
8
8
  meta:
9
9
  title: 用户管理
10
- authPath: /system/user
11
10
  </route>
12
11
 
13
12
  <script lang="ts" setup>