edit #129

Merged
lyc merged 3 commits from lyc-dev into main 2024-12-13 10:34:06 +08:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit b5669a97f1 - Show all commits

View File

@ -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]);