xiongzhu преди 3 години
родител
ревизия
4d5a716493
променени са 2 файла, в които са добавени 30 реда и са изтрити 36 реда
  1. 26 32
      electron-builder.json
  2. 4 4
      packages/renderer/src/views/HomeView.vue

+ 26 - 32
electron-builder.json

@@ -1,34 +1,28 @@
 {
-  "appId": "vip.raex.trading",
-  "productName": "RAEX大智慧",
-  "asar": true,
-  "directories": {
-    "output": "release"
-  },
-  "files": [
-    "dist"
-  ],
-  "mac": {
-    "artifactName": "${productName}_${version}.${ext}",
-    "target": [
-      "dmg"
-    ]
-  },
-  "win": {
-    "target": [
-      {
-        "target": "nsis",
-        "arch": [
-          "x64"
-        ]
-      }
-    ],
-    "artifactName": "${productName}_${version}.${ext}"
-  },
-  "nsis": {
-    "oneClick": false,
-    "perMachine": false,
-    "allowToChangeInstallationDirectory": true,
-    "deleteAppDataOnUninstall": false
-  }
+    "appId": "vip.raex.trading",
+    "productName": "RAEX大智慧",
+    "asar": true,
+    "directories": {
+        "output": "release"
+    },
+    "files": ["dist"],
+    "mac": {
+        "artifactName": "${productName}_${version}.${ext}",
+        "target": ["dmg"]
+    },
+    "win": {
+        "target": [
+            {
+                "target": "nsis",
+                "arch": ["x64"]
+            }
+        ],
+        "artifactName": "${productName}_${version}.${ext}"
+    },
+    "nsis": {
+        "oneClick": false,
+        "perMachine": false,
+        "allowToChangeInstallationDirectory": true,
+        "deleteAppDataOnUninstall": false
+    }
 }

+ 4 - 4
packages/renderer/src/views/HomeView.vue

@@ -113,7 +113,7 @@ const sortOptions = [
 const tagId = useStorage('tagId', '')
 
 const tags = ref(null)
-http.post('/tag/all', { size: 10000 }, { body: 'json' }).then(res => {
+http.post('/tag/all', { size: 200 }, { body: 'json' }).then(res => {
     tags.value = res.content
 })
 
@@ -123,7 +123,7 @@ const listLoading = ref(false)
 const getList = () => {
     if (listLoading.value) return
     listLoading.value = true
-    http.get('/collection/byTag', { size: 10000, sort: listSort.value, tagId: tagId.value }).then(res => {
+    http.get('/collection/byTag', { size: 200, sort: listSort.value, tagId: tagId.value }).then(res => {
         listLoading.value = false
         res.content.forEach(i => {
             const m = /^(.*?)\s*(#\d+)$/.exec(i.name)
@@ -145,7 +145,7 @@ const orderLoading = ref(false)
 const getOrder = () => {
     if (orderLoading.value) return
     orderLoading.value = true
-    http.get('/order/byTag', { size: 10000, sort: orderSort.value, tagId: tagId.value }).then(res => {
+    http.get('/order/byTag', { size: 200, sort: orderSort.value, tagId: tagId.value }).then(res => {
         orderLoading.value = false
         res.content.forEach(i => {
             const m = /^(.*?)\s*(#\d+)$/.exec(i.name)
@@ -164,7 +164,7 @@ const getOrder = () => {
 const assets = ref([])
 const assetsLoading = ref(false)
 const getAssets = () => {
-    http.get('/asset/byTag', { size: 10000, sort: 'id,desc', tagId: tagId.value }, { body: 'json' }).then(res => {
+    http.get('/asset/byTag', { size: 200, sort: 'id,desc', tagId: tagId.value }, { body: 'json' }).then(res => {
         if (res.first) {
             assets.value = []
         }