Procházet zdrojové kódy

优化代码,和更新依赖

ZaiZai před 1 rokem
rodič
revize
cb574040f0
5 změnil soubory, kde provedl 5 přidání a 21 odebrání
  1. 1 2
      package.json
  2. 0 4
      src/components/install.js
  3. 2 1
      src/views/project/middle.vue
  4. 2 2
      vite.config.js
  5. 0 12
      yarn.lock

+ 1 - 2
package.json

@@ -42,7 +42,6 @@
         "sass": "^1.72.0",
         "unocss": "^0.58.9",
         "unocss-preset-extra": "^0.5.3",
-        "vite": "^4.5.0",
-        "vue3-seamless-scroll": "^2.0.1"
+        "vite": "^4.5.0"
     }
 }

+ 0 - 4
src/components/install.js

@@ -14,8 +14,6 @@ import 'hc-vue3-ui/scss'
 import '../styles/app/main.scss'
 import '../styles/app/element.scss'
 
-import vue3SeamlessScroll from 'vue3-seamless-scroll'
-
 //注册全局组件
 export const setupInstall = (App) => {
     // 饿了么UI框架
@@ -24,6 +22,4 @@ export const setupInstall = (App) => {
     })
     // hc-vue3-ui
     App.use(HcVue3UI, website)
-
-    App.use(vue3SeamlessScroll)
 }

+ 2 - 1
src/views/project/middle.vue

@@ -12,7 +12,7 @@
                 <GistCreate v-else-if="menuKey === 'project-collect-gist-create'" :form="gistFormInfo" @back="gistCreateBack" />
                 <GistListe v-else-if="menuKey === 'project-collect-gist-list'" @edit="gistListeEdit" />
                 <hc-card v-else>
-                    <hc-empty />
+                    <hc-empty :src="svg404" title="404" text="抱歉,您要访问的页面不存在" />
                 </hc-card>
             </div>
         </template>
@@ -30,6 +30,7 @@ import { getStore } from '~src/utils/storage'
 
 //子组件
 import svg403 from '~src/assets/view/403.svg'
+import svg404 from '~src/assets/view/404.svg'
 import HcMenuBar from '~src/layout/modules/MenuBar.vue'
 import AdminCreate from './admin/create.vue'
 import AdminListe from './admin/list.vue'

+ 2 - 2
vite.config.js

@@ -26,8 +26,8 @@ export default defineConfig({
             output: {
                 manualChunks(id) {
                     let libStr = `
-                    @vue,vue-router,pinia,hc-vue3-ui,js-fast-way,element-plus,
-                    echarts,vuedraggable,split.js,nprogress,avue-plugin-ueditor,@smallwei/avue`
+                    @vue,vue-router,pinia,hc-vue3-ui,js-fast-way,element-plus
+                    echarts,vuedraggable,unocss,nprogress,unocss-preset-extra`
                     const libs = libStr.split(',')
                     if (id.includes('node_modules')) {
                         const arr = id.toString().split('node_modules/')[1].split('/')

+ 0 - 12
yarn.lock

@@ -2871,11 +2871,6 @@ text-table@^0.2.0:
   resolved "http://39.108.216.210:9000/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
   integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==
 
-throttle-debounce@5.0.0:
-  version "5.0.0"
-  resolved "http://39.108.216.210:9000/throttle-debounce/-/throttle-debounce-5.0.0.tgz#a17a4039e82a2ed38a5e7268e4132d6960d41933"
-  integrity sha512-2iQTSgkkc1Zyk0MeVrt/3BvuOXYPl/R8Z0U2xxo9rjwNciaHDG3R+Lm6dh4EeUci49DanvBnuqI6jshoQQRGEg==
-
 to-fast-properties@^2.0.0:
   version "2.0.0"
   resolved "http://39.108.216.210:9000/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
@@ -3027,13 +3022,6 @@ vue-router@^4.3.0:
   dependencies:
     "@vue/devtools-api" "^6.5.1"
 
-vue3-seamless-scroll@^2.0.1:
-  version "2.0.1"
-  resolved "http://39.108.216.210:9000/vue3-seamless-scroll/-/vue3-seamless-scroll-2.0.1.tgz#7b2d44afe94d545a2fe4affe8f81b884fc713268"
-  integrity sha512-mI3BaDU3pjcPUhVSw3/xNKdfPBDABTi/OdZaZqKysx4cSdNfGRbVvGNDzzptBbJ5S7imv5T55l6x/SqgnxKreg==
-  dependencies:
-    throttle-debounce "5.0.0"
-
 vue@3.4.21:
   version "3.4.21"
   resolved "http://39.108.216.210:9000/vue/-/vue-3.4.21.tgz#69ec30e267d358ee3a0ce16612ba89e00aaeb731"