更新到v0.2.3版本

This commit is contained in:
lyswhut
2019-08-22 23:02:59 +08:00
parent 893d20b4e9
commit 2b3aab2faf
19 changed files with 128 additions and 49 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import { author, name } from '../../../package.json'
export default {
getVersionInfo() {
return new Promise((resolve, reject) => {
httpGet(`https://raw.githubusercontent.com/${author}/${name}/master/publish/version.json`, (err, resp, body) => {
httpGet(`https://raw.githubusercontent.com/${author.name}/${name}/master/publish/version.json`, (err, resp, body) => {
if (err) return reject(err)
resolve(body)
})
+1 -1
View File
@@ -56,7 +56,7 @@ const actions = {
// mitations
const mutations = {
setUrl(state, datas) {
datas.musicInfo.typeUrl[datas.type] = datas.url
datas.musicInfo.typeUrl = Object.assign({}, datas.musicInfo.typeUrl, { [datas.type]: datas.url })
},
getPic(state, datas) {
datas.musicInfo.img = datas.url
+2 -2
View File
@@ -19,7 +19,7 @@ export default {
// val.desc = val.desc.replace(/\n/g, '<br>')
state.version.newVersion = val
},
setVersionVisible(state, val) {
state.version.showModal = val
setVersionVisible(state, { isShow }) {
state.version.showModal = isShow
},
}
+1
View File
@@ -49,6 +49,7 @@ export default {
version,
newVersion: null,
showModal: false,
isError: false,
},
userInfo: null,
setting,