Browse Source

🎈 perf: 更改操作手册图标

Pchen. 4 months ago
parent
commit
6a58b519ec
1 changed files with 26 additions and 10 deletions
  1. 26 10
      src/pages/lepao/accountList/index.vue

+ 26 - 10
src/pages/lepao/accountList/index.vue

@@ -13,11 +13,18 @@
           添加账号
         </a-button>
 
-        <a-button size="large" @click="download" style="margin-left: 10px;">
+        <a-button size="large" @click="download('windows')" style="margin-left: 10px;">
           <template #icon>
-            <icon-question-circle />
+            <icon-desktop />
           </template>
-          操作说明
+          Windows操作说明
+        </a-button>
+
+        <a-button size="large" @click="download('iphone')" style="margin-left: 10px;">
+          <template #icon>
+            <icon-mobile />
+          </template>
+          iPhone操作说明
         </a-button>
 
         <a-button size="large" @click="$router.push('/download/down')" style="margin-left: 10px;" v-if="!isElectron()">
@@ -452,14 +459,23 @@ const form = reactive({
   notes: ''
 })
 
-const download = () => {
-  const a = document.createElement('a');
-  a.href = 'https:\/\/lepao-cloud.xxoo365.top\/down.php\/682d99f9694c6fe76b64b86c5741a2d8.pdf';
-  a.download = 'RunForge操作说明.pdf'
+const download = (device) => {
+  const a = document.createElement('a')
+
+  if (device === 'windows') {
+    a.href = 'https:\/\/lepao-cloud.xxoo365.top/down.php\/682d99f9694c6fe76b64b86c5741a2d8.pdf'
+    a.download = 'RunForge-Windows操作说明.pdf'
+  } else if (device === 'iphone') {
+    a.href = 'https:\/\/lepao-cloud.xxoo365.top/down.php\/fba1d571166b4c95592c7c4e624a9390.pdf'
+    a.download = 'RunForge-iPhone操作说明.pdf'
+  } else {
+    return
+  }
+
   a.target = '_blank'
-  document.body.appendChild(a);
-  a.click();
-  document.body.removeChild(a);
+  document.body.appendChild(a)
+  a.click()
+  document.body.removeChild(a)
 }
 
 const editAccount = (item) => {