This commit is contained in:
24kycj
2024-12-09 14:56:35 +08:00
parent f933a19025
commit 1f8f0dcb4c
7 changed files with 359 additions and 261 deletions
+6 -2
View File
@@ -210,6 +210,9 @@ const dayjs = require('dayjs')
import fileEmpty from './files/fileEmpty'
import files from './files/file'
const exePath = path.dirname(process.execPath)
// const exePath = process.cwd();
export default {
name: 'UserInfo',
components: { fileEmpty, files },
@@ -720,7 +723,7 @@ export default {
},
// 获取模板文件列表
getTemplates() {
const filePath = path.join(process.cwd(), 'User Templates');
const filePath = path.join(exePath, 'User Templates');
fs.readdir(filePath, (err, files) => {
if (err) {
console.log(err)
@@ -892,7 +895,8 @@ export default {
},
setSure() {
this.setShow = false
this.$store.commit('setData', { name: 'setForm', data: this.setForm })
that.$store.dispatch('chat/setDatas', {name: 'workStatus', data: true})
this.$store.dispatch('setDatas', { name: 'setForm', data: this.setForm })
}
}
}