邓洁: 修复bug
This commit is contained in:
@@ -95,6 +95,7 @@ const currentSiteId = ref(0);
|
||||
const currentSite = ref("");
|
||||
const siteList = ref([])
|
||||
const currentUser = ref("");
|
||||
const currentUserId = ref(0);
|
||||
const currentDate = ref(dateFormat());
|
||||
const tunnelBtn = ref();
|
||||
const tunnelList = ref([]);
|
||||
@@ -124,6 +125,7 @@ onMounted(() => {
|
||||
const getUser = () => {
|
||||
getUserInfo().then(res => {
|
||||
currentUser.value = res.data.user.userName
|
||||
currentUserId.value = res.data.user.userId
|
||||
})
|
||||
}
|
||||
const getDefaultSite=(siteId)=>{
|
||||
@@ -179,9 +181,9 @@ const changeTunnel = (e) => {
|
||||
const manageSelect = (index) => {
|
||||
console.log("首页点击-", index);
|
||||
if (index === 0) {
|
||||
router.push("/site");
|
||||
router.push("/site"+'/'+currentUserId.value);
|
||||
} else if (index === 1) {
|
||||
router.push("/tunnel/" + currentSiteId.value+'/i');
|
||||
router.push("/tunnel/" + currentSiteId.value+'/i'+'/'+currentUserId.value);
|
||||
} else if (index === 2) {
|
||||
router.push("/user/" + currentSiteId.value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user