更新到v0.2.3版本
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
},
|
||||
}
|
||||
|
||||
@@ -49,6 +49,7 @@ export default {
|
||||
version,
|
||||
newVersion: null,
|
||||
showModal: false,
|
||||
isError: false,
|
||||
},
|
||||
userInfo: null,
|
||||
setting,
|
||||
|
||||
Reference in New Issue
Block a user