|
@@ -141,7 +141,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { nextTick, onMounted, ref, watch } from 'vue'
|
|
|
+import { nextTick, onActivated, onMounted, ref, watch } from 'vue'
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
import { HcIsButton } from '~src/plugins/IsButtons'
|
|
@@ -241,7 +241,13 @@ onMounted(() => {
|
|
|
setContractType(contractInfo.value?.contractType)
|
|
|
getDictionaryApi()
|
|
|
})
|
|
|
-
|
|
|
+onActivated(()=>{
|
|
|
+ //重新加载左边树
|
|
|
+ isShowLeft.value = false
|
|
|
+ setTimeout(()=>{
|
|
|
+ isShowLeft.value = true
|
|
|
+ }, 500)
|
|
|
+})
|
|
|
//身份按钮切换数据
|
|
|
const authBtnTabKey = ref('1')
|
|
|
|
|
@@ -661,9 +667,11 @@ const showTreeNode = async ()=>{
|
|
|
showTreeNodeLoad.value = false
|
|
|
if (!error && code === 200) {
|
|
|
window?.$message?.success(msg || '操作成功')
|
|
|
- setTimeout(() => {
|
|
|
- window?.location?.reload() //刷新页面
|
|
|
- }, 1000)
|
|
|
+ //重新加载左边树
|
|
|
+ isShowLeft.value = false
|
|
|
+ setTimeout(()=>{
|
|
|
+ isShowLeft.value = true
|
|
|
+ }, 500)
|
|
|
|
|
|
} else {
|
|
|
window?.$message?.error(msg)
|