vue2-client 1.9.166 → 1.9.167

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.9.166",
3
+ "version": "1.9.167",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
package/src/App.vue CHANGED
@@ -145,6 +145,10 @@ export default {
145
145
  }
146
146
  },
147
147
  setHtmlTitle () {
148
+ // 微应用下不设置title
149
+ if (window.__MICRO_APP_ENVIRONMENT__) {
150
+ return
151
+ }
148
152
  const route = this.$route
149
153
  const key = route.path === '/' ? 'home.name' : getI18nKey(route.matched[route.matched.length - 1].path)
150
154
  document.title = process.env.VUE_APP_NAME + ' | ' + this.$t(key)