bug修改

This commit is contained in:
simple321vip
2022-10-31 21:19:57 +08:00
parent b6f702e96e
commit 52eed19584
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -47,7 +47,7 @@ async function checktoken(url: string) {
}) })
return return
} }
if (url.search("home") != -1) { if (url.search("/home/") != -1) {
let arr = url.split('?') let arr = url.split('?')
let parameters = arr[1].split('&') let parameters = arr[1].split('&')
let query_data: { [key: string]: any } = {} let query_data: { [key: string]: any } = {}
@@ -66,7 +66,10 @@ async function checktoken(url: string) {
}); });
window.open(href, '_self'); window.open(href, '_self');
}).catch((error) => { }).catch((error) => {
console.log(error) const { href } = router.resolve({
path: '/login'
});
window.open(href, '_self');
}) })
} }
if (url.search("sorryPage") != -1) { if (url.search("sorryPage") != -1) {
+1 -1
View File
@@ -265,8 +265,8 @@ const onclickTypeTab = (order: number) => {
const onclickBlogTab = (blog: Blog) => { const onclickBlogTab = (blog: Blog) => {
deleteBtName.value = "" deleteBtName.value = ""
getContent(blog.bid).then(response => { getContent(blog.bid).then(response => {
blogTypes[checkedBlogIndex.value].blogs[checkedIndex.value].content = response.data.content
checkedIndex.value = blog.order checkedIndex.value = blog.order
blogTypes[checkedBlogIndex.value].blogs[checkedIndex.value].content = response.data.content
copy(current_blog, blog) copy(current_blog, blog)
updated.value = true updated.value = true
}).catch(() => { }).catch(() => {