File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
ui/src/views/knowledge/create-component Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,10 @@ import BaseForm from '@/views/knowledge/component/BaseForm.vue'
2929import { MsgSuccess , MsgAlert } from ' @/utils/message'
3030import { loadSharedApi } from ' @/utils/dynamics-api/shared-api'
3131import { t } from ' @/locales'
32+ import useStore from " @/stores" ;
3233const emit = defineEmits ([' refresh' ])
3334
35+ const { user } = useStore ()
3436const router = useRouter ()
3537const route = useRoute ()
3638const apiType = computed (() => {
@@ -67,6 +69,10 @@ const submitHandle = async () => {
6769 }
6870 loadSharedApi ({ type: ' knowledge' , systemType: apiType .value })
6971 .postKnowledge (obj , loading )
72+ .then (async (res : any ) => {
73+ await user .profile ();
74+ return res
75+ })
7076 .then ((res : any ) => {
7177 MsgSuccess (t (' common.createSuccess' ))
7278 router .push ({
Original file line number Diff line number Diff line change @@ -58,8 +58,10 @@ import BaseForm from '@/views/knowledge/component/BaseForm.vue'
5858import { MsgSuccess , MsgAlert } from ' @/utils/message'
5959import { t } from ' @/locales'
6060import { loadSharedApi } from ' @/utils/dynamics-api/shared-api'
61+ import useStore from " @/stores" ;
6162const emit = defineEmits ([' refresh' ])
6263
64+ const { user } = useStore ()
6365const router = useRouter ()
6466const route = useRoute ()
6567const apiType = computed (() => {
@@ -159,6 +161,10 @@ const submitHandle = async () => {
159161 }
160162 loadSharedApi ({ type: ' knowledge' , systemType: apiType .value })
161163 .postLarkKnowledge (obj , loading )
164+ .then (async (res : any ) => {
165+ await user .profile ();
166+ return res
167+ })
162168 .then ((res : any ) => {
163169 MsgSuccess (t (' common.createSuccess' ))
164170 router .push ({
Original file line number Diff line number Diff line change @@ -50,8 +50,10 @@ import BaseForm from '@/views/knowledge/component/BaseForm.vue'
5050import { MsgSuccess , MsgAlert } from ' @/utils/message'
5151import { loadSharedApi } from ' @/utils/dynamics-api/shared-api'
5252import { t } from ' @/locales'
53+ import useStore from " @/stores" ;
5354const emit = defineEmits ([' refresh' ])
5455
56+ const { user } = useStore ()
5557const router = useRouter ()
5658const route = useRoute ()
5759const apiType = computed (() => {
@@ -113,6 +115,10 @@ const submitHandle = async () => {
113115 }
114116 loadSharedApi ({ type: ' knowledge' , systemType: apiType .value })
115117 .postWebKnowledge (obj , loading )
118+ .then (async (res : any ) => {
119+ await user .profile ();
120+ return res
121+ })
116122 .then ((res : any ) => {
117123 MsgSuccess (t (' common.createSuccess' ))
118124 router .push ({
You can’t perform that action at this time.
0 commit comments