dashboard-shell-shell 3.0.5-order.3 → 3.0.5-order.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dashboard-shell-shell",
3
- "version": "3.0.5-order.3",
3
+ "version": "3.0.5-order.4",
4
4
  "description": "Rancher Dashboard Shell",
5
5
  "repository": "https://github.com/rancherlabs/dashboard",
6
6
  "license": "Apache-2.0",
@@ -70,7 +70,7 @@ export default {
70
70
  },
71
71
 
72
72
  computed: {
73
- ...mapGetters(['isSingleProduct']),
73
+ ...mapGetters(['isSingleProduct', 'isRancherInHarvester', 'isMultiCluster']),
74
74
  ...mapGetters({ t: 'i18n/t', hasMultipleLocales: 'i18n/hasMultipleLocales' }),
75
75
 
76
76
  loggedOutSuccessMsg() {
@@ -307,12 +307,16 @@ export default {
307
307
  $plugin: this.$store.$plugin
308
308
  });
309
309
 
310
- const routerParmas = {
311
- name: 'c-cluster-product-resource',
312
- params: {
313
- cluster: BLANK_CLUSTER,
314
- product: 'manager',
315
- resource: CAPI.RANCHER_CLUSTER
310
+ let routerParmas = 'index'
311
+
312
+ if (this.isRancherInHarvester || this.isMultiCluster || !this.isSingleProduct){
313
+ routerParmas = {
314
+ name: 'c-cluster-product-resource',
315
+ params: {
316
+ cluster: BLANK_CLUSTER,
317
+ product: 'manager',
318
+ resource: CAPI.RANCHER_CLUSTER
319
+ }
316
320
  }
317
321
  }
318
322
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
3
  # 执行命令示例:
4
- # TAG=shell-pkg-v3.0.5-order.3 ./shell/scripts/publish-shell.sh
4
+ # TAG=shell-pkg-v3.0.5-order.4 ./shell/scripts/publish-shell.sh
5
5
 
6
6
  set -euo pipefail
7
7