no message
This commit is contained in:
@@ -72,10 +72,6 @@ watchEffect(() => {
|
||||
keyword.value = route.query["keyword"]
|
||||
})
|
||||
|
||||
// 点击跳转首页
|
||||
// const goIndex = () => {
|
||||
// // router.push(`/index.html`)
|
||||
// }
|
||||
// 点击发布
|
||||
const goPublish = () => {
|
||||
if (isNeedLogin.value) {
|
||||
@@ -107,8 +103,10 @@ const setHistoricalSearchList = () => {
|
||||
|
||||
// 搜索点击事件
|
||||
const searchClick = () => {
|
||||
// router.push(`/index.html?keyword=${keyword.value || ""}`)
|
||||
goToURL(`/index.html?keyword=${keyword.value || ""}`, false)
|
||||
// 在首页页面 搜索 直接跳转 其他页面需要打开新页面
|
||||
if (route.name == "index.html") router.push(`/index.html?keyword=${keyword.value || ""}`)
|
||||
else goToURL(`/index.html?keyword=${keyword.value || ""}`, false)
|
||||
|
||||
setHistoricalSearchList()
|
||||
searchBlur()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user