diff --git a/src/renderer/index.html b/src/renderer/index.html index a460d21..974cb39 100644 --- a/src/renderer/index.html +++ b/src/renderer/index.html @@ -8,7 +8,7 @@ http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:" /> --> - + diff --git a/src/renderer/src/components/tinymce/tinymce.vue b/src/renderer/src/components/tinymce/tinymce.vue index 4c74536..d0837e3 100644 --- a/src/renderer/src/components/tinymce/tinymce.vue +++ b/src/renderer/src/components/tinymce/tinymce.vue @@ -187,10 +187,10 @@ const init = reactive({ min_height: props.minHeight, draggable_modal: true, extended_valid_elements: '*[.*]', - // external_plugins: { - // tiny_mce_wiris: `/tinymce/tool/@wiris/mathtype-tinymce6/plugin.min.js`, - // //tiny_mce_wiris: `https://www.wiris.net/demo/plugins/tiny_mce/plugin.js`, - // }, + external_plugins: { + tiny_mce_wiris: `/tinymce/tool/@wiris/mathtype-tinymce6/plugin.min.js`, + //tiny_mce_wiris: `https://www.wiris.net/demo/plugins/tiny_mce/plugin.js`, + }, // setup: function (editor) { // }, diff --git a/src/renderer/src/views/profile/components/selectClass.vue b/src/renderer/src/views/profile/components/selectClass.vue index f956927..24e3d48 100644 --- a/src/renderer/src/views/profile/components/selectClass.vue +++ b/src/renderer/src/views/profile/components/selectClass.vue @@ -62,10 +62,18 @@ const handleUserEduStage = (item) => { // 默认语文 userStore.edusubject = '语文' } + else if(item === '高中' && userStore.edusubject === "道德与法治"){ + // 默认语文 + userStore.edusubject = '政治' + } + else if(item != '高中' && userStore.edusubject === "政治"){ + // 默认语文 + userStore.edusubject = '道德与法治' + } } // 选择学科 const handleUserEduSubject = (item) => { - userStore.edusubject = item + userStore.edusubject = item; } onMounted(() => { getSubject()