百色农校完成
This commit is contained in:
@@ -10,6 +10,15 @@ const drawer = ref<boolean>(false);
|
||||
const onSearch = () => {
|
||||
window.location.href = `/${i18n.locale.value}/search/${keyword.value}`;
|
||||
}
|
||||
|
||||
const route = useRoute();
|
||||
watch(
|
||||
() => route.params.keywords,
|
||||
(text) => {
|
||||
keyword.value = String(text);
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -19,10 +28,10 @@ const onSearch = () => {
|
||||
<div class="lang flex justify-center text-center items-center">
|
||||
<el-space size="large">
|
||||
<a href="mailto:1145119853@qq.com" class="text-sm flex items-center hidden-sm-and-down"><el-icon color="#fff" size="16"><Message /></el-icon><span class="text-white px-1">校长信箱</span></a>
|
||||
<a :href="`https://www.gxbsnx.com`" class="text-sm flex items-center hidden-sm-and-down"><el-icon color="#fff" size="16"><Message /></el-icon><span class="text-white px-1">旧版</span></a>
|
||||
<!-- <a href="/search/请输入搜索关键词" class="text-sm flex items-center hidden-sm-and-down"><el-icon color="#fff" size="16"><Search /></el-icon><span class="text-white px-1">站内搜搜</span></a>-->
|
||||
<div class="search mx-5 hidden-sm-and-down">
|
||||
<div class="fl">
|
||||
<el-input v-model="keyword" :placeholder="`${$t('searchKeywords')}...`" :suffix-icon="Search" @change="onSearch" />
|
||||
<el-input v-model="keyword" :placeholder="`${$t('searchKeywords')}...`" style="height: 28px;" :suffix-icon="Search" @change="onSearch" />
|
||||
</div>
|
||||
</div>
|
||||
<!-- 移动端 -->
|
||||
|
||||
Reference in New Issue
Block a user