fix: 未登录隐藏首页批量按钮 & 头部跳转参数添加baseUrl
This commit is contained in:
@@ -60,7 +60,7 @@ const onCategoryChange = (event) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const search = () => {
|
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 = () => {
|
const handleClear = () => {
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
</d-dropdown-menu>
|
</d-dropdown-menu>
|
||||||
<d-button color="primary" variant="solid" @click="search">搜索</d-button>
|
<d-button color="primary" variant="solid" @click="search">搜索</d-button>
|
||||||
</div>
|
</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="home-information">
|
||||||
<div class="info-title">
|
<div class="info-title">
|
||||||
<div class="sub-title">
|
<div class="sub-title">
|
||||||
@@ -120,6 +120,7 @@ import EarlyWarningDetail from '@/views/Jyh/PersonalCenter/Detail/EarlyWarningDe
|
|||||||
import { useGlobalInfoStore } from '@/stores/Global';
|
import { useGlobalInfoStore } from '@/stores/Global';
|
||||||
const { updateHeaderSearch } = useGlobalInfoStore();
|
const { updateHeaderSearch } = useGlobalInfoStore();
|
||||||
const { accountInfo } = useAccount();
|
const { accountInfo } = useAccount();
|
||||||
|
import { useDiscussGetUserInfo } from '@/api/discussion/hook';
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@@ -138,6 +139,7 @@ const infoList = ref([]);
|
|||||||
const warningModalVisable = ref(false);
|
const warningModalVisable = ref(false);
|
||||||
const currentWarning = ref();
|
const currentWarning = ref();
|
||||||
|
|
||||||
|
const { isLogin } = useDiscussGetUserInfo()
|
||||||
const homeSearch = ref(null);
|
const homeSearch = ref(null);
|
||||||
const dropdownWidth = ref(0);
|
const dropdownWidth = ref(0);
|
||||||
const selectedCate = ref('软件');
|
const selectedCate = ref('软件');
|
||||||
|
|||||||
Reference in New Issue
Block a user