diff --git a/src/main/store.js b/src/main/store.js index a34bd90..22e61dd 100644 --- a/src/main/store.js +++ b/src/main/store.js @@ -23,7 +23,9 @@ const defaultData = { curNode: null, // 当前选中的节点 defaultExpandedKeys: [], //展开的节点 subjectTree: [] // "树结构" 章节 - } + }, + env: {}, // 不走同步 Pinia - 变量 + curr: {} // 不走同步 Pinia - 当前信息 }, local: { // 本地(永久localStorage) }, diff --git a/src/renderer/src/AixPPTist/src/App.vue b/src/renderer/src/AixPPTist/src/App.vue index 9029052..2d58652 100644 --- a/src/renderer/src/AixPPTist/src/App.vue +++ b/src/renderer/src/AixPPTist/src/App.vue @@ -1,15 +1,20 @@ diff --git a/src/renderer/src/views/prepare/container/ai-pptistV2.vue b/src/renderer/src/views/prepare/container/ai-pptistV2.vue new file mode 100644 index 0000000..0a1f50e --- /dev/null +++ b/src/renderer/src/views/prepare/container/ai-pptistV2.vue @@ -0,0 +1,391 @@ + + + + + + diff --git a/src/renderer/src/views/prepare/container/pptist-dialog.vue b/src/renderer/src/views/prepare/container/pptist-dialog.vue new file mode 100644 index 0000000..84bf25f --- /dev/null +++ b/src/renderer/src/views/prepare/container/pptist-dialog.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/src/renderer/src/views/profile/components/selectClass.vue b/src/renderer/src/views/profile/components/selectClass.vue index ada1d13..2dcc47e 100644 --- a/src/renderer/src/views/profile/components/selectClass.vue +++ b/src/renderer/src/views/profile/components/selectClass.vue @@ -59,24 +59,27 @@ const getSubject = () => { // 选择学段 const handleUserEduStage = (item) => { userStore.edustage = item - sessionStore.set('edustage',item) + sessionStore.set('edustageSelf',item) if(item === '幼儿园'){ // 默认语文 userStore.edusubject = '语文' + sessionStore.set('edusubjectSelf','语文') } else if(item === '高中' && userStore.edusubject === "道德与法治"){ // 默认语文 userStore.edusubject = '政治' + sessionStore.set('edusubjectSelf','政治') } else if(item != '高中' && userStore.edusubject === "政治"){ // 默认语文 userStore.edusubject = '道德与法治' + sessionStore.set('edusubjectSelf','道德与法治') } } // 选择学科 const handleUserEduSubject = (item) => { userStore.edusubject = item; - sessionStore.set('edusubject',item) + sessionStore.set('edusubjectSelf',item) } onMounted(() => { getSubject() diff --git a/src/renderer/src/views/profile/userInfo.vue b/src/renderer/src/views/profile/userInfo.vue index ee9d703..c51ae31 100644 --- a/src/renderer/src/views/profile/userInfo.vue +++ b/src/renderer/src/views/profile/userInfo.vue @@ -165,8 +165,8 @@ setTimeout(() => { function submit() { proxy.$refs.userRef.validate((valid) => { if (valid) { - userStore.user.edusubject = sessionStore.get('edusubject') ? sessionStore.get('edusubject') : userStore.user.edusubject - userStore.user.edustage = sessionStore.get('edustage') ? sessionStore.get('edustage') : userStore.user.edustage + userStore.user.edusubject = sessionStore.get('edusubjectSelf') ? sessionStore.get('edusubjectSelf') : userStore.user.edusubject + userStore.user.edustage = sessionStore.get('edustageSelf') ? sessionStore.get('edustageSelf') : userStore.user.edustage updateUserInfo(userStore.user).then((response) => { if(response.code == 200){ userStore.login({username:userStore.user.userName,password:userStore.user.plainpwd}).then(() => { diff --git a/src/renderer/src/views/teachingDesign/container/right.vue b/src/renderer/src/views/teachingDesign/container/right.vue index f973469..2be6c0d 100644 --- a/src/renderer/src/views/teachingDesign/container/right.vue +++ b/src/renderer/src/views/teachingDesign/container/right.vue @@ -11,7 +11,7 @@
生成大纲 - 生成PPT + 生成PPT
@@ -49,6 +49,7 @@
+