li.shaoyi há 2 anos atrás
pai
commit
1181a456bd

+ 3 - 1
app/electron.build.js

@@ -12,13 +12,15 @@ const fileContents = fs.readFileSync(convertPath('dist/config/appconfig.json'),
 const appConfig = JSON.parse(fileContents)
 const isBeta = process.argv.includes('demo') // 是否测试版
 
+console.log(isBeta)
+
 // 打包之前清空目录
 exec('rd/s/q ' + outputDir)
 
 // 打包自动修改版本号
 const pkgContents = fs.readFileSync(convertPath('package.json'), 'utf-8')
 const pkg = JSON.parse(pkgContents)
-pkg.name = pkg.name + (isBeta ? '-beta' : '')
+pkg.name = isBeta ? 'trading-beta' : 'trading'
 pkg.version = appConfig.version
 fs.writeFileSync(convertPath('package.json'), JSON.stringify(pkg, null, 2))
 

+ 9 - 9
app/main.js

@@ -19,15 +19,15 @@ const updateHandle = (win) => {
             })
 
             // 检查更新出错
-            autoUpdater.on('error', (err) => {
-                dialog.showMessageBox({
-                    type: 'error',
-                    title: '错误',
-                    noLink: true,
-                    message: '更新发生错误',
-                    detail: err.message
-                })
-            })
+            // autoUpdater.on('error', (err) => {
+            //     dialog.showMessageBox({
+            //         type: 'error',
+            //         title: '错误',
+            //         noLink: true,
+            //         message: '更新发生错误',
+            //         detail: err.message
+            //     })
+            // })
 
             // 检测到有版本更新
             autoUpdater.on('update-available', (e) => {

+ 2 - 2
app/package.json

@@ -1,6 +1,6 @@
 {
-  "name": "trading-beta",
-  "version": "1.0.10",
+  "name": "trading",
+  "version": "1.0.11",
   "main": "main.js",
   "dependencies": {
     "electron-updater": "^6.1.4",

+ 1 - 1
src/packages/mobile/views/goods/detail/components/listing/Index.vue

@@ -28,7 +28,7 @@
                             </div>
                         </template>
                     </Field>
-                    <Field label="可买/卖量" v-if="false">
+                    <Field label="预估可订立量">
                         <template #input>
                             <span>{{ enableQty }}</span>
                         </template>