vue2-client 1.8.44 → 1.8.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,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.44",
3
+ "version": "1.8.45",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -48,6 +48,9 @@ export async function getRoutesConfig (value, routeName = '智慧燃气') {
48
48
  * 退出登录
49
49
  */
50
50
  export function logout () {
51
+ if (window.__MICRO_APP_ENVIRONMENT__) {
52
+ window.microApp.dispatch({ type: 'logout' })
53
+ }
51
54
  return new Promise((resolve, reject) => {
52
55
  request(V4_LOGOUT, METHOD.DELETE, {}).then(() => {
53
56
  resolve()