增加moment

This commit is contained in:
unknown
2022-06-20 10:36:10 +08:00
parent 39778aeae6
commit 0f1c83df12

View File

@ -9,7 +9,7 @@ import { customerserviceAPI as API} from '@/services/customerservice';
import { message, Modal, Table, Button, Popconfirm } from 'antd'; import { message, Modal, Table, Button, Popconfirm } from 'antd';
import { history } from 'umi' import { history } from 'umi'
import {CUSTOMERSERVICE_WEBSOCKET, CUSTOMERSERVICE_messageAlert} from './constants' import {CUSTOMERSERVICE_WEBSOCKET, CUSTOMERSERVICE_messageAlert} from './constants'
import moment from "moment";
//网页刷新时清空sessionStorage //网页刷新时清空sessionStorage
window.onbeforeunload = function(){ window.onbeforeunload = function(){
sessionStorage.removeItem('CUSTOMERSERVICE_CONVERSATIONID') sessionStorage.removeItem('CUSTOMERSERVICE_CONVERSATIONID')