补上翻译
parent
09a7974818
commit
0332b22c4a
|
@ -219,10 +219,13 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showUpdateModal() {
|
showUpdateModal() {
|
||||||
(this.version.newVersion && this.version.newVersion.history ? Promise.resolve(this.version.newVersion) : this.getVersionInfo().then(body => {
|
(this.version.newVersion && this.version.newVersion.history
|
||||||
this.setNewVersion(body)
|
? Promise.resolve(this.version.newVersion)
|
||||||
return body
|
: this.getVersionInfo().then(body => {
|
||||||
})).catch(() => {
|
this.setNewVersion(body)
|
||||||
|
return body
|
||||||
|
})
|
||||||
|
).catch(() => {
|
||||||
if (this.version.newVersion) return this.version.newVersion
|
if (this.version.newVersion) return this.version.newVersion
|
||||||
this.setVersionModalVisible({ isUnknow: true })
|
this.setVersionModalVisible({ isUnknow: true })
|
||||||
let result = {
|
let result = {
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"back": "返回",
|
||||||
|
"loding_list": "列表加載中..."
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"back": "返回",
|
||||||
|
"loding_list": "列表加载中..."
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"back": "Back",
|
||||||
|
"loding_list": "List loading..."
|
||||||
|
}
|
|
@ -10,8 +10,8 @@ export default {
|
||||||
}, (err, resp, body) => {
|
}, (err, resp, body) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return ++retryNum > 3
|
return ++retryNum > 3
|
||||||
? this.dispatch('getVersionInfo2').then(ver => resolve(ver)).catch(err => reject(err))
|
? this.dispatch('getVersionInfo2').then(resolve).catch(reject)
|
||||||
: this.dispatch('getVersionInfo', retryNum).then(ver => resolve(ver)).catch(err => reject(err))
|
: this.dispatch('getVersionInfo', retryNum).then(resolve).catch(reject)
|
||||||
}
|
}
|
||||||
resolve(body)
|
resolve(body)
|
||||||
})
|
})
|
||||||
|
@ -23,7 +23,9 @@ export default {
|
||||||
timeout: 20000,
|
timeout: 20000,
|
||||||
}, (err, resp, body) => {
|
}, (err, resp, body) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return ++retryNum > 3 ? reject() : this.dispatch('getVersionInfo2', retryNum).then(ver => resolve(ver)).catch(err => reject(err))
|
return ++retryNum > 3
|
||||||
|
? reject(err)
|
||||||
|
: this.dispatch('getVersionInfo2', retryNum).then(resolve).catch(reject)
|
||||||
}
|
}
|
||||||
resolve(body)
|
resolve(body)
|
||||||
})
|
})
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
//- |
|
//- |
|
||||||
//- material-btn(:class="$style.closeDetailButton" :disabled="detailLoading" @click="playSongListDetail") 播放
|
//- material-btn(:class="$style.closeDetailButton" :disabled="detailLoading" @click="playSongListDetail") 播放
|
||||||
//- |
|
//- |
|
||||||
material-btn(:class="$style.closeDetailButton" @click="hideListDetail") 返回
|
material-btn(:class="$style.closeDetailButton" @click="hideListDetail") {{$t('view.song_list.back')}}
|
||||||
material-song-list(v-model="selectdData" @action="handleSongListAction" :source="source" :page="listDetail.page" :limit="listDetail.limit" :total="listDetail.total" :noItem="$t('material.song_list.loding_list')" :list="listDetail.list")
|
material-song-list(v-model="selectdData" @action="handleSongListAction" :source="source" :page="listDetail.page" :limit="listDetail.limit" :total="listDetail.total" :noItem="$t('material.song_list.loding_list')" :list="listDetail.list")
|
||||||
transition(enter-active-class="animated-fast fadeIn" leave-active-class="animated-fast fadeOut")
|
transition(enter-active-class="animated-fast fadeIn" leave-active-class="animated-fast fadeOut")
|
||||||
div(:class="$style.songListContainer" v-if="!isVisibleListDetail")
|
div(:class="$style.songListContainer" v-if="!isVisibleListDetail")
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
use(xlink:href='#icon-right')
|
use(xlink:href='#icon-right')
|
||||||
transition(enter-active-class="animated-fast fadeIn" leave-active-class="animated-fast fadeOut")
|
transition(enter-active-class="animated-fast fadeIn" leave-active-class="animated-fast fadeOut")
|
||||||
div(v-show="!listData.list.length" :class="$style.noitem")
|
div(v-show="!listData.list.length" :class="$style.noitem")
|
||||||
p {{$t('material.song_list.loding_list')}}
|
p {{$t('view.song_list.loding_list')}}
|
||||||
material-download-modal(:show="isShowDownload" :musicInfo="musicInfo" @select="handleAddDownload" @close="isShowDownload = false")
|
material-download-modal(:show="isShowDownload" :musicInfo="musicInfo" @select="handleAddDownload" @close="isShowDownload = false")
|
||||||
material-download-multiple-modal(:show="isShowDownloadMultiple" :list="selectdData" @select="handleAddDownloadMultiple" @close="isShowDownloadMultiple = false")
|
material-download-multiple-modal(:show="isShowDownloadMultiple" :list="selectdData" @select="handleAddDownloadMultiple" @close="isShowDownloadMultiple = false")
|
||||||
material-list-add-modal(:show="isShowListAdd" :musicInfo="musicInfo" @close="isShowListAdd = false")
|
material-list-add-modal(:show="isShowListAdd" :musicInfo="musicInfo" @close="isShowListAdd = false")
|
||||||
|
|
Loading…
Reference in New Issue