优化
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user