bug修改
This commit is contained in:
+5
-2
@@ -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) {
|
||||||
|
|||||||
@@ -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(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user