1
0

2 Коммиты 88d0f09b41 ... 3c7af137ce

Автор SHA1 Сообщение Дата
  wyj0522 3c7af137ce fix: 截取 1 неделя назад
  Gaokun Wang f7eee926e0 fix: 截取.vue字符 1 неделя назад
2 измененных файлов с 15 добавлено и 1 удалено
  1. 1 1
      src/router/modules/dynamicRouter.ts
  2. 14 0
      src/views/models/configs/index.vue

+ 1 - 1
src/router/modules/dynamicRouter.ts

@@ -8,7 +8,7 @@ import type { RouteRecordRaw } from 'vue-router'
 export const modules = import.meta.glob('@/views/**/*.vue')
 
 export const buildComponentPaths = () => {
-  return Object.keys(modules).map(key => key.replace('/src/views', ''))
+  return Object.keys(modules).map(key => key.replace('/src/views', '').replace(/\.vue$/, ''))
 }
 
 /**

+ 14 - 0
src/views/models/configs/index.vue

@@ -0,0 +1,14 @@
+<template>
+  <!--  <div class="contrent-count">-->
+  <!--    <div class="count-header">-->
+  <!--        <span>{{1111111111}}</span>-->
+  <!--    </div>-->
+  <!--  </div>-->
+  <div>管理</div>
+</template>
+<!--<script>-->
+
+<!--</script>-->
+<!--<style>-->
+
+<!--</style>-->