diff --git a/src/manifest.development.json b/src/manifest.development.json index 5416731..06f1987 100644 --- a/src/manifest.development.json +++ b/src/manifest.development.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "TEMU助手", "description": "TEMU助手 - 自动化提高生产效率", - "version": "0.0.1", + "version": "1.0", "background": { "service_worker": "/background.js" }, diff --git a/src/manifest.production.json b/src/manifest.production.json index 4f9ba5b..06f1987 100644 --- a/src/manifest.production.json +++ b/src/manifest.production.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "TEMU助手", "description": "TEMU助手 - 自动化提高生产效率", - "version": "1.0.0", + "version": "1.0", "background": { "service_worker": "/background.js" }, diff --git a/src/view/Learning.vue b/src/view/Learning.vue index 2db5460..1316501 100644 --- a/src/view/Learning.vue +++ b/src/view/Learning.vue @@ -98,7 +98,7 @@ if (action === 'confirm') { this.$http.post(isFavorite === '0' ? `/api/learning/addFavorite?id=${id}` : `/api/learning/delFavorite?id=${id}`).then(res => { if (res.code === 0) { - this.$message.success(isFavorite === '1' ? '取消成功' : '收藏成功') + this.$message.success(isFavorite === '0' ? '收藏成功' : '取消成功') this.getList() } }) diff --git a/src/view/Welcome.vue b/src/view/Welcome.vue index c154420..882935f 100644 --- a/src/view/Welcome.vue +++ b/src/view/Welcome.vue @@ -23,9 +23,9 @@
-
+
- 新版本 + 新版本下载

{{ item.title }}

{{ item.createTime }} @@ -45,14 +45,15 @@ :close-on-click-modal="false" customFooter :show-close="!isImportant" + @close="info = {}, isShowDownload = false" width="690">

{{ info.title }}

{{ info.content }}

@@ -70,7 +71,8 @@ info: {}, changeLogList: [], isImportant: false, - version: '' + version: '', + isShowDownload: false } }, @@ -93,12 +95,21 @@ }) }, - download () { + showInfo (info, index) { + if (index === 0) { + this.isShowDownload = true + } + this.info = info + console.log(this.info.version === this.version) + this.isShow = true + }, + + download (url) { const link = document.createElement('a') link.style.display = 'none' - link.href = this.info.downloadUrl + link.href = url link.setAttribute('target', '_blank') - link.setAttribute('download', `TEMU助手-${this.info.varsion}.zip`) + link.setAttribute('download', `TEMU助手-${url}.zip`) document.body.appendChild(link) link.click() document.body.removeChild(link)