|
@@ -1,8 +1,9 @@
|
|
|
<script setup>
|
|
|
import { apiSystemMessage } from '@/api/system'
|
|
|
-import { useRouter } from 'vue-router'
|
|
|
+import { useRouter , useRoute } from 'vue-router'
|
|
|
|
|
|
const router=useRouter()
|
|
|
+const route=useRoute()
|
|
|
|
|
|
const emits=defineEmits(['change'])
|
|
|
|
|
@@ -19,7 +20,14 @@ function getMsgList() {
|
|
|
getMsgList()
|
|
|
|
|
|
function handleGoCustomerDetail(e){
|
|
|
- router.push('/customer/userDetail?id=' + e.UserId)
|
|
|
+ if(route.path==='/customer/userDetail'){
|
|
|
+ router.replace('/customer/userDetail?id=' + e.UserId)
|
|
|
+ setTimeout(() => {
|
|
|
+ router.go(0)
|
|
|
+ }, 50);
|
|
|
+ }else{
|
|
|
+ router.push('/customer/userDetail?id=' + e.UserId)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|