ZaiZai 11 月之前
父节点
当前提交
63de799584
共有 4 个文件被更改,包括 533 次插入218 次删除
  1. 21 21
      package.json
  2. 2 2
      src/renderer/src/main.js
  3. 8 2
      src/renderer/src/store/app.js
  4. 502 193
      yarn.lock

+ 21 - 21
package.json

@@ -14,39 +14,39 @@
         "build:linux": "npm run build && electron-builder --linux"
     },
     "dependencies": {
-        "@electron-toolkit/preload": "^3.0.0",
+        "@electron-toolkit/preload": "^3.0.1",
         "@electron-toolkit/utils": "^3.0.0",
         "@electron/remote": "^2.1.2",
-        "electron-updater": "^6.1.8",
-        "sql.js": "^1.10.2"
+        "electron-updater": "^6.3.4",
+        "sql.js": "^1.11.0"
     },
     "devDependencies": {
         "@electron-toolkit/eslint-config": "^1.0.1",
-        "@electron/get": "^3.0.0",
-        "@iconify-json/iconoir": "^1.1.42",
-        "@iconify-json/ri": "^1.1.20",
-        "@rushstack/eslint-patch": "^1.6.1",
+        "@electron/get": "^3.1.0",
+        "@iconify-json/iconoir": "^1.2.1",
+        "@iconify-json/ri": "^1.2.0",
+        "@rushstack/eslint-patch": "^1.10.4",
         "@unocss/eslint-config": "^0.58.5",
-        "@vitejs/plugin-vue": "^5.0.3",
-        "@vue/compiler-sfc": "^3.4.21",
-        "compressing": "^1.10.0",
-        "dayjs": "^1.11.10",
-        "echarts": "^5.5.0",
-        "electron": "^29.1.1",
+        "@vitejs/plugin-vue": "^5.1.3",
+        "@vue/compiler-sfc": "^3.5.5",
+        "compressing": "^1.10.1",
+        "dayjs": "^1.11.13",
+        "echarts": "^5.5.1",
+        "electron": "^32.0.1",
         "electron-builder": "^24.13.3",
         "electron-vite": "^2.1.0",
-        "element-plus": "^2.6.0",
+        "element-plus": "^2.8.3",
         "eslint": "^8.57.0",
         "eslint-plugin-vue": "^9.22.0",
         "fs-extra": "^11.2.0",
-        "hc-vue3-ui": "^3.2.3",
-        "js-fast-way": "^0.4.6",
-        "pinia": "^2.1.7",
-        "sass": "^1.71.1",
+        "hc-vue3-ui": "^4.3.4",
+        "js-fast-way": "^0.5.6",
+        "pinia": "^2.2.2",
+        "sass": "^1.78.0",
         "unocss": "^0.58.5",
         "unocss-preset-extra": "^0.5.3",
-        "vite": "^5.1.5",
-        "vue": "^3.4.21",
-        "vue-router": "^4.3.0"
+        "vite": "^5.4.5",
+        "vue": "^3.5.5",
+        "vue-router": "^4.4.5"
     }
 }

+ 2 - 2
src/renderer/src/main.js

@@ -14,8 +14,8 @@ import 'dayjs/locale/zh-cn'
 
 //hc-vue3-ui
 import HcVue3UI from 'hc-vue3-ui'
-import 'hc-vue3-ui/dist/index.css'
-import 'hc-vue3-ui/style/index.scss'
+import 'hc-vue3-ui/css'
+import 'hc-vue3-ui/scss'
 
 //挂载全局
 import { setupComponents } from './components/index'

+ 8 - 2
src/renderer/src/store/app.js

@@ -1,6 +1,6 @@
 import pinia from './init'
 import { useAppStore } from './index'
-import { exists_file, read_config_file } from '../utils/tools'
+import { exists_file, read_config_file, toPage } from '../utils/tools'
 import { isArrIndex, isNullES } from 'js-fast-way'
 
 const store = useAppStore(pinia)
@@ -10,7 +10,13 @@ export const getProjectInfo = async () => {
     //获取数据存储路径
     const { dataPath } = read_config_file()
     store.setDataPath(dataPath)
-    console.log('dataPath:', dataPath)
+    if (!exists_file(dataPath)) {
+        toPage({
+            page: '/init',
+            query: { source: '' },
+        })
+        return { code: 300 }
+    }
     //获取项目数据
     let projectPath = dataPath + '/project.json'
     //项目数据不存在

文件差异内容过多而无法显示
+ 502 - 193
yarn.lock


部分文件因为文件数量过多而无法显示