ZaiZai 1 year ago
parent
commit
c35421e126
2 changed files with 6 additions and 4 deletions
  1. 3 3
      electron-builder.yml
  2. 3 1
      src/renderer/src/views/project.vue

+ 3 - 3
electron-builder.yml

@@ -13,7 +13,7 @@ asarUnpack:
 win:
   executableName: 档案脱机存档
 nsis:
-  artifactName: 档案脱机存档-${version}.${ext}
+  artifactName: 档案脱机存档-${version}-安装包.${ext}
   shortcutName: ${productName}
   uninstallDisplayName: ${productName}
   createDesktopShortcut: always
@@ -26,7 +26,7 @@ mac:
     - NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
   notarize: false
 dmg:
-  artifactName: 档案脱机存档-${version}.${ext}
+  artifactName: 档案脱机存档-${version}-安装包.${ext}
 linux:
   target:
     - AppImage
@@ -35,7 +35,7 @@ linux:
   maintainer: hczc.hcxxy.com
   category: Utility
 appImage:
-  artifactName: 档案脱机存档-${version}.${ext}
+  artifactName: 档案脱机存档-${version}-安装包.${ext}
 npmRebuild: false
 publish:
   provider: generic

+ 3 - 1
src/renderer/src/views/project.vue

@@ -154,7 +154,9 @@ const itemClick = (item) => {
     setTimeout(() => {
         window.$message.success('项目切换成功')
         isLoading.value = false
-        window.location.href = '/home'
+        toPage({
+            page: 'home',
+        })
     }, 2000)
 }