调整创建项目
This commit is contained in:
@@ -14,10 +14,10 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<chat ref="chat" @chatChange="chatChange" v-if="openType"></chat>
|
||||
<chat ref="chatDom" @chatChange="chatChange" v-show="openType == 'history'"></chat>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { defineComponent,computed,ref,watch,nextTick,provide,toRefs, reactive} from 'vue'
|
||||
import { defineComponent,computed,ref,watch,nextTick,provide,toRefs, reactive, onMounted} from 'vue'
|
||||
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||
import { Https } from "@/tool/https";
|
||||
import { useStore } from "vuex";
|
||||
@@ -43,7 +43,7 @@ export default defineComponent({
|
||||
isShowMark:false,
|
||||
routeQuery:{} as any,
|
||||
selectObject:computed(()=>store.state.Workspace.probjects) as any,//选择的项目
|
||||
|
||||
chatData:null as any,
|
||||
})
|
||||
const setIsShowMark = (boolean:boolean)=>{
|
||||
data.isShowMark = boolean
|
||||
@@ -52,10 +52,10 @@ export default defineComponent({
|
||||
const dataDom = reactive({
|
||||
design:null as any,
|
||||
newPorject:null as any,
|
||||
chatDom:null as any,
|
||||
})
|
||||
watch(() => route.query,
|
||||
(query, oldQuery) => {
|
||||
console.log(route)
|
||||
data.routeQuery = query
|
||||
const key = Object.keys(query)?.[0]
|
||||
if(key){
|
||||
@@ -173,9 +173,23 @@ export default defineComponent({
|
||||
// nextTick(()=>{
|
||||
// dataDom.workflow.isUpdataPorject = true
|
||||
// })
|
||||
|
||||
setChatData()
|
||||
getCollection()
|
||||
}
|
||||
const setChatData = ()=>{
|
||||
if(!data.chatData)return
|
||||
console.log(dataDom.chatDom?.enableThinking,data.chatData)
|
||||
nextTick(()=>{
|
||||
dataDom.chatDom.enableThinking = data.chatData.enableThinking
|
||||
dataDom.chatDom.filList = data.chatData.filList
|
||||
dataDom.chatDom.chatContent = data.chatData.chatContent
|
||||
dataDom.chatDom.isFinish = true
|
||||
dataDom.chatDom.isChattingRecords = true
|
||||
dataDom.chatDom.sendChat()
|
||||
data.chatData = null
|
||||
})
|
||||
|
||||
}
|
||||
// const setitemData = (arr:any)=>{
|
||||
// return new Promise((resolve,reject)=>{
|
||||
// nextTick(()=>{
|
||||
@@ -365,9 +379,11 @@ export default defineComponent({
|
||||
getCollection()
|
||||
}
|
||||
}
|
||||
const newProject = (id:any)=>{
|
||||
const newProject = (value:any)=>{
|
||||
props.settingGetHistory()
|
||||
router.push(`home?history=${id}`)
|
||||
router.push(`home?history=${value.id}`)
|
||||
data.chatData = value
|
||||
|
||||
}
|
||||
return{
|
||||
...toRefs(dataDom),
|
||||
|
||||
Reference in New Issue
Block a user