Commit 29330223 authored by 李腾's avatar 李腾

feat: 新增env配置&删除部分console

parent 183de8e0
......@@ -40,6 +40,8 @@ const preProdApi = {
qiniuHost: 'https://kdspstatic.q-gp.com/',
opapiHost: 'https://opapi-pre.q-gp.com',
querysApi: 'https://sc-settlement-api.q-gp.com',
wsApi: 'wss://push.q-gp.com',
msgApi: 'https://msgapi.q-gp.com',
};
let exportApi = envAPi;
......
......@@ -19,6 +19,7 @@ import logo from '../assets/logo.png';
import style from './BasicLayout.less';
import Socket from '@/utils/websocket';
import { CHANNEL_ID } from '@/utils/constants';
const { Sider } = Layout;
const { SubMenu } = Menu;
......@@ -58,9 +59,8 @@ const BasicLayout = props => {
useEffect(() => {
try {
const token = window.localStorage.getItem('token');
const channelId = 100001;
const socket = new Socket({
url: getSocketUrl({ token, channelId }),
url: getSocketUrl({ token, channelId: CHANNEL_ID }),
});
socket.connection();
......
......@@ -110,7 +110,6 @@ const StoreModal = props => {
params.parentId = id;
}
const res = await apiAddrArea(params);
console.log(res);
if (res) {
const arr = res.map(item => ({
isLeaf: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment