升级vite依赖库版本
This commit is contained in:
parent
1ff7f5dec5
commit
6ed8c355d8
12
package.json
12
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vite-demo",
|
"name": "blog-admin-web",
|
||||||
"version": "0.0.0",
|
"version": "0.1.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"prebuild": "vue-tsc --noEmit --skipLibCheck",
|
"prebuild": "vue-tsc --noEmit --skipLibCheck",
|
||||||
@ -17,7 +17,7 @@
|
|||||||
"moment": "^2.29.1",
|
"moment": "^2.29.1",
|
||||||
"pretty-bytes": "^5.6.0",
|
"pretty-bytes": "^5.6.0",
|
||||||
"unplugin-element-plus": "^0.1.0",
|
"unplugin-element-plus": "^0.1.0",
|
||||||
"vue": "^3.2.16",
|
"vue": "^3.2.45",
|
||||||
"vue-axios": "^3.3.7",
|
"vue-axios": "^3.3.7",
|
||||||
"vue-class-component": "8.0.0-rc.1",
|
"vue-class-component": "8.0.0-rc.1",
|
||||||
"vue-router": "^4.0.11",
|
"vue-router": "^4.0.11",
|
||||||
@ -25,10 +25,10 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^16.10.3",
|
"@types/node": "^16.10.3",
|
||||||
"@vitejs/plugin-vue": "^1.9.2",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
"less": "^4.1.1",
|
"less": "^4.1.1",
|
||||||
"typescript": "^4.4.3",
|
"typescript": "^4.4.3",
|
||||||
"vite": "^2.6.0",
|
"vite": "^4.0.4",
|
||||||
"vue-tsc": "^0.3.0"
|
"vue-tsc": "^1.0.24"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -56,19 +56,15 @@
|
|||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
{{ findMusicLib(scope.row.lib_id) }}
|
{{ findMusicLib(scope.row.lib_id) }}
|
||||||
<el-button link type="primary" @click="updateLib(scope.row)">
|
<el-button link icon="Edit" type="primary" @click="updateLib(scope.row)"></el-button>
|
||||||
<i class="el-icon-edit-outline"></i>
|
|
||||||
</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="lyric_id" label="歌词" width="120" >
|
<el-table-column prop="lyric_id" label="歌词" width="120" >
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div style="width: 18px">
|
<div style="width: 18px">
|
||||||
<el-icon>
|
<Check v-if="scope.row.lyric_id" />
|
||||||
<Check v-if="scope.row.lyric_id" />
|
<Close v-else/>
|
||||||
<Close v-else/>
|
|
||||||
</el-icon>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -246,12 +242,8 @@ export default class Music extends BaseList<MusicPage> {
|
|||||||
remove(row: MusicModel) {
|
remove(row: MusicModel) {
|
||||||
ElMessageBox.confirm(`是否确认删除 ${row.name} ?`, '确认删除', {type: 'warning'}).then(async () => {
|
ElMessageBox.confirm(`是否确认删除 ${row.name} ?`, '确认删除', {type: 'warning'}).then(async () => {
|
||||||
const data = await this.$http.delete<{params: {id: string}}, any>('/api/v2/music/delete', {params: {id: row._id}})
|
const data = await this.$http.delete<{params: {id: string}}, any>('/api/v2/music/delete', {params: {id: row._id}})
|
||||||
if(data.status) {
|
ElMessage.success(data.message)
|
||||||
ElMessage.success(data.message)
|
this.loadData()
|
||||||
this.loadData()
|
|
||||||
} else {
|
|
||||||
ElMessage.warning(data.message)
|
|
||||||
}
|
|
||||||
}).catch(() => {})
|
}).catch(() => {})
|
||||||
}
|
}
|
||||||
async updateLyric(row: MusicModel) {
|
async updateLyric(row: MusicModel) {
|
||||||
|
|||||||
@ -84,10 +84,8 @@
|
|||||||
<el-table-column prop="tags" label="是否已分词" width="120" >
|
<el-table-column prop="tags" label="是否已分词" width="120" >
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div style="width: 18px">
|
<div style="width: 18px">
|
||||||
<el-icon>
|
<Check v-if="scope.row.is_splited" />
|
||||||
<Check v-if="scope.row.is_splited" />
|
<Close v-else/>
|
||||||
<Close v-else/>
|
|
||||||
</el-icon>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user