Skip to content

Commit

Permalink
fix websocket not work (#209)
Browse files Browse the repository at this point in the history
* fix: fix websocket not work

* fix: delete useless ws
  • Loading branch information
laojun authored May 19, 2021
1 parent 586d93d commit 155ac74
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 71 deletions.
1 change: 1 addition & 0 deletions core/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ module.exports = () => {
'./config': './src/config.ts',
'./stores/route': './src/stores/route.ts',
'./stores/loading': './src/stores/loading.ts',
'./utils/ws': './src/utils/ws.ts',
'./nusi':'./src/nusi/index.tsx',
},
shared: {
Expand Down
70 changes: 0 additions & 70 deletions shell/app/common/utils/ws.ts

This file was deleted.

2 changes: 1 addition & 1 deletion shell/app/layout/stores/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import { createStore } from 'app/cube';
import { getDiceVersion, inviteToOrg } from 'layout/services';
import * as DiceWebSocket from 'common/utils/ws';
import * as DiceWebSocket from 'core/utils/ws';
import { enableIconfont, setApiWithOrg } from 'common/utils';
import routeInfoStore from 'app/common/stores/route';
import { find, merge } from 'lodash';
Expand Down
3 changes: 3 additions & 0 deletions shell/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@
"core/nusi": [
"../core/src/nusi"
],
"core/utils/ws": [
"../core/src/utils/ws.ts"
],
"core/stores/route": [
"../core/src/stores/route.ts"
],
Expand Down

0 comments on commit 155ac74

Please sign in to comment.