fix:an error in the article management interface
This commit is contained in:
@@ -130,8 +130,8 @@ async function refreshCDN() {
|
||||
async function main() {
|
||||
const files = getAllFiles('./dist')
|
||||
console.log(`📁 共找到 ${files.length} 个文件,开始上传...`)
|
||||
// await uploadFilesWithClean(files, './dist', ['dicts', 'sound', 'libs'])
|
||||
await uploadFilesWithClean(files, './dist', ['libs'])
|
||||
await uploadFilesWithClean(files, './dist', ['dicts', 'sound', 'libs'])
|
||||
// await uploadFilesWithClean(files, './dist', ['libs'])
|
||||
await refreshCDN()
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ import Toast from '@/pages/pc/components/base/toast/Toast.ts'
|
||||
import {getDefaultArticle} from "@/types/func.ts";
|
||||
import BackIcon from "@/pages/pc/components/BackIcon.vue";
|
||||
import MiniDialog from "@/pages/pc/components/dialog/MiniDialog.vue";
|
||||
import * as XLSX from "xlsx";
|
||||
import {onMounted} from "vue";
|
||||
import {Origin} from "@/config/ENV.ts";
|
||||
|
||||
@@ -136,7 +135,9 @@ let showExport = $ref(false)
|
||||
useWindowClick(() => showExport = false)
|
||||
|
||||
onMounted(() => {
|
||||
article = runtimeStore.editDict.articles[0]
|
||||
if (runtimeStore.editDict.articles.length) {
|
||||
article = runtimeStore.editDict.articles[0]
|
||||
}
|
||||
})
|
||||
|
||||
let exportLoading = $ref(false)
|
||||
|
||||
Reference in New Issue
Block a user