|
@@ -283,11 +283,7 @@ export const useProjectStore = defineStore('project', () => {
|
|
|
const globalStylePath = path.replace('project.ui', 'style.ui')
|
|
const globalStylePath = path.replace('project.ui', 'style.ui')
|
|
|
const style = await window.electron.ipcRenderer.invoke('read-file', globalStylePath, 'utf-8')
|
|
const style = await window.electron.ipcRenderer.invoke('read-file', globalStylePath, 'utf-8')
|
|
|
if (result) {
|
|
if (result) {
|
|
|
- loadProject(
|
|
|
|
|
- JSON.parse(result),
|
|
|
|
|
- path.slice(0, path.lastIndexOf('\\') + 1),
|
|
|
|
|
- JSON.parse(style)
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ loadProject(JSON.parse(result), path.slice(0, path.lastIndexOf('\\')), JSON.parse(style))
|
|
|
ElMessage.success({
|
|
ElMessage.success({
|
|
|
message: t('openProjectSuccess'),
|
|
message: t('openProjectSuccess'),
|
|
|
plain: true
|
|
plain: true
|