From b5669a97f1d0bd51d3e2b8024c5654524599a784 Mon Sep 17 00:00:00 2001 From: lyc Date: Fri, 13 Dec 2024 10:28:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E6=9F=A5=E8=AF=A2=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0user?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/template-study/container/right.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/template-study/container/right.vue b/src/renderer/src/components/template-study/container/right.vue index bc06fd4..95c00a5 100644 --- a/src/renderer/src/components/template-study/container/right.vue +++ b/src/renderer/src/components/template-study/container/right.vue @@ -91,11 +91,12 @@ import keywordDialog from './keyword-dialog.vue'; import AdjustDialog from './adjust-dialog.vue' import EditDialog from './edit-dialog.vue' import TypingEffect from '@/components/typing-effect/index.vue' +import useUserStore from '@/store/modules/user' import emitter from '@/utils/mitt'; import { dataSetJson } from '@/utils/comm.js' const props = defineProps(['curNode', 'type']) - +const { user } = useUserStore() /*****************提示词相关****************/ /** @@ -137,7 +138,7 @@ const curTemplate = reactive({ name: '', id: '' }) const templateList = ref([]) const childTempList = ref([]) const getTemplateList = () => { - modelList({ model: props.type, type: 1, pageNum: 1, pageSize: 10000, ex1: curNode.edustage, ex2: curNode.edusubject }).then(res => { + modelList({ createUser: user.userId, model: props.type, type: 1, pageNum: 1, pageSize: 10000, ex1: curNode.edustage, ex2: curNode.edusubject }).then(res => { templateList.value = res.rows if(res.rows.length > 0){ Object.assign(curTemplate, res.rows[0]);