二期:BUG修复

This commit is contained in:
朱浩 2024-08-13 16:46:47 +08:00
parent bc9c6a3c89
commit 8f50174595
3 changed files with 4 additions and 5 deletions

View File

@ -9,7 +9,7 @@ VITE_APP_BASE_API = '/dev-api'
VITE_APP_DOMAIN = 'file.ysaix.com'
VITE_APP_UPLOAD_API = 'http://192.168.2.52:7863'
VITE_APP_UPLOAD_API = 'https://file.ysaix.com:7868/prod-api'
VITE_APP_RES_FILE_PATH = 'https://file.ysaix.com:7868/src/assets/textbook/booktxt/'

View File

@ -20,7 +20,6 @@ export function shareStorePlugin({store}) {
function stateSync(store) {
const storeName = store.$id
const jsonStr = circularSafeStringify(store.$state)
console.log('state-change', jsonStr, storeName)
// 通知主线程更新
ipcRenderer?.invoke('pinia-state-change', storeName, jsonStr)
}

View File

@ -232,7 +232,7 @@ export default {
this.isOpenHomework = false
})
},
// activated() {
// if (this.uploadData.textbookId !== null) {
@ -427,7 +427,7 @@ export default {
await this.asyncAllFile()
},
async initHomeWork() {
if (this.uploadData.levelSecondId) {
// ID
let { rows } = await this.getChapterId()
@ -552,7 +552,7 @@ export default {
}
}
//
let ary = uniqBy([...this.currentFileList, ...list], 'id')
let ary = uniqBy([...list], 'id')
//
this.currentWorkList = cloneDeep(ary)
})