merge junjie_dev into master
fix: 未登录隐藏首页批量按钮 & 头部跳转参数添加baseUrl Created-by: user8949 Commit-by: @user8949 Merged-by: user8949 Description: fix: 未登录隐藏首页批量按钮 & 头部跳转参数添加baseUrl See merge request: hk_openRepo/OpenRepo_Portal!53
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
@@ -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('软件');
|
||||
|
||||
Reference in New Issue
Block a user