fix: 未登录隐藏首页批量按钮 & 头部跳转参数添加baseUrl

This commit is contained in:
@user8949
2025-03-20 09:59:40 +08:00
parent 08b7dfc450
commit f7dcf2365f
2 changed files with 4 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ const onCategoryChange = (event) => {
}
const search = () => {
window.open(`/repoList?softwareName=${softwareName.value ? softwareName.value : ''}&searchType=${searchType.value}`, '_blank')
window.open(`${import.meta.env.VITE_BASE_URL}repoList?softwareName=${softwareName.value ? softwareName.value : ''}&searchType=${searchType.value}`, '_blank')
};
const handleClear = () => {

View File

@@ -59,7 +59,7 @@
</d-dropdown-menu>
<d-button color="primary" variant="solid" @click="search">搜索</d-button>
</div>
<d-button @click="check" ref="origin" icon="share" class="batch-btn">批量校验</d-button>
<d-button v-if="isLogin" @click="check" ref="origin" icon="share" class="batch-btn">批量校验</d-button>
<div class="home-information">
<div class="info-title">
<div class="sub-title">
@@ -120,6 +120,7 @@ import EarlyWarningDetail from '@/views/Jyh/PersonalCenter/Detail/EarlyWarningDe
import { useGlobalInfoStore } from '@/stores/Global';
const { updateHeaderSearch } = useGlobalInfoStore();
const { accountInfo } = useAccount();
import { useDiscussGetUserInfo } from '@/api/discussion/hook';
const route = useRoute();
const router = useRouter();
@@ -138,6 +139,7 @@ const infoList = ref([]);
const warningModalVisable = ref(false);
const currentWarning = ref();
const { isLogin } = useDiscussGetUserInfo()
const homeSearch = ref(null);
const dropdownWidth = ref(0);
const selectedCate = ref('软件');