cloud-web-corejs 1.1.0-dev.44 → 1.1.0-dev.45

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,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.1.0-dev.44",
4
+ "version": "1.1.0-dev.45",
5
5
  "scripts": {
6
6
  "build:ace-resources": "node build/build-ace-resources.js",
7
7
  "build:tinymce-resources": "node build/build-tinymce-resources.js",
@@ -118,12 +118,16 @@ export default {
118
118
  if (!enTitle || locale !== "en") {
119
119
  title = zhTitle
120
120
  }
121
- if (this.$t1) {
122
- title = this.$t1(title)
123
- }
124
- if (item.repeatIndex > 1) {
125
- title = `${title} (${item.repeatIndex})`
126
- }
121
+ if (this.$t1) {
122
+ title = this.$t1(title)
123
+ }
124
+ if (item.query?._tabSuffix) {
125
+ let suffix = this.$t1 ? this.$t1(item.query._tabSuffix) : item.query._tabSuffix
126
+ title = `${title}(${suffix})`
127
+ }
128
+ if (!item.query?._tabSuffix && item.repeatIndex > 1) {
129
+ title = `${title} (${item.repeatIndex})`
130
+ }
127
131
  return title;
128
132
  },
129
133
  viewKey(view) {