|
@@ -13,11 +13,18 @@
|
|
|
添加账号
|
|
添加账号
|
|
|
</a-button>
|
|
</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>
|
|
<template #icon>
|
|
|
- <icon-question-circle />
|
|
|
|
|
|
|
+ <icon-desktop />
|
|
|
</template>
|
|
</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>
|
|
|
|
|
|
|
|
<a-button size="large" @click="$router.push('/download/down')" style="margin-left: 10px;" v-if="!isElectron()">
|
|
<a-button size="large" @click="$router.push('/download/down')" style="margin-left: 10px;" v-if="!isElectron()">
|
|
@@ -452,14 +459,23 @@ const form = reactive({
|
|
|
notes: ''
|
|
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'
|
|
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) => {
|
|
const editAccount = (item) => {
|