Skip to content

Commit

Permalink
fix: 修复项目切换问题 TencentBlueKing#1702
Browse files Browse the repository at this point in the history
  • Loading branch information
lockiechen authored Jan 26, 2024
1 parent 87e043e commit b486ca8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/frontend/devops-repository/src/AppMixin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue from 'vue'
import { mapState, mapMutations } from 'vuex'
import ConfirmDialog from '@repository/components/ConfirmDialog'
import GlobalUploadViewport from '@repository/components/GlobalUploadViewport'
import Vue from 'vue'
import { mapMutations, mapState } from 'vuex'
export default {
name: 'App',
components: { ConfirmDialog, GlobalUploadViewport },
Expand Down Expand Up @@ -40,7 +40,7 @@ export default {
goHome (projectId) {
const params = projectId ? { projectId } : {}
this.$router.replace({
name: 'repoList',
name: 'repositories',
params
})
},
Expand Down
24 changes: 12 additions & 12 deletions src/frontend/devops-repository/src/views/repoGeneric/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,26 +214,26 @@
</div>
</template>
<script>
import OperationList from '@repository/components/OperationList'
import Breadcrumb from '@repository/components/Breadcrumb'
import iamDenyDialog from '@repository/components/IamDenyDialog/IamDenyDialog'
import Loading from '@repository/components/Loading/loading'
import MoveSplitBar from '@repository/components/MoveSplitBar'
import OperationList from '@repository/components/OperationList'
import RepoTree from '@repository/components/RepoTree'
import ScanTag from '@repository/views/repoScan/scanTag'
import { getIconName } from '@repository/store/publicEnum'
import { convertFileSize, debounce, formatDate } from '@repository/utils'
import { beforeMonths, beforeYears } from '@repository/utils/date'
import { customizeDownloadFile } from '@repository/utils/downloadFile'
import metadataTag from '@repository/views/repoCommon/metadataTag'
import genericCleanDialog from '@repository/views/repoGeneric/genericCleanDialog'
import genericDetail from '@repository/views/repoGeneric/genericDetail'
import genericFormDialog from '@repository/views/repoGeneric/genericFormDialog'
import genericShareDialog from '@repository/views/repoGeneric/genericShareDialog'
import genericTreeDialog from '@repository/views/repoGeneric/genericTreeDialog'
import previewBasicFileDialog from './previewBasicFileDialog'
import iamDenyDialog from '@repository/components/IamDenyDialog/IamDenyDialog'
import ScanTag from '@repository/views/repoScan/scanTag'
import { mapActions, mapMutations, mapState } from 'vuex'
import compressedFileTable from './compressedFileTable'
import { convertFileSize, formatDate, debounce } from '@repository/utils'
import { beforeMonths, beforeYears } from '@repository/utils/date'
import { customizeDownloadFile } from '@repository/utils/downloadFile'
import { getIconName } from '@repository/store/publicEnum'
import { mapState, mapMutations, mapActions } from 'vuex'
import Loading from '@repository/components/Loading/loading'
import genericCleanDialog from '@repository/views/repoGeneric/genericCleanDialog'
import previewBasicFileDialog from './previewBasicFileDialog'
export default {
name: 'repoGeneric',
Expand Down Expand Up @@ -354,7 +354,7 @@
// 前端隐藏report仓库/log仓库
if (MODE_CONFIG === 'ci' && (to.query.repoName === 'report' || to.query.repoName === 'log')) {
next({
name: 'repoList',
name: 'repositories',
params: {
projectId: to.params.projectId
}
Expand Down

0 comments on commit b486ca8

Please sign in to comment.