gengx
This commit is contained in:
parent
ac9ad60128
commit
8ead6c2002
|
@ -1,7 +1,7 @@
|
|||
VITE_NOW_TYPE = 'dist'
|
||||
|
||||
VITE_PUSH_URL = 'ws://192.168.1.22:8787'
|
||||
VITE_BASE_URL = 'http://192.168.1.22:8546'
|
||||
# VITE_PUSH_URL = 'ws://192.168.1.22:8787'
|
||||
# VITE_BASE_URL = 'http://192.168.1.22:8546'
|
||||
|
||||
# VITE_PUSH_URL ='wss://erp.lihaink.cn/pull'
|
||||
# VITE_BASE_URL = 'https://erp.lihaink.cn'
|
||||
VITE_PUSH_URL ='wss://erp.lihaink.cn/pull'
|
||||
VITE_BASE_URL = 'https://erp.lihaink.cn'
|
|
@ -39,11 +39,11 @@ const newOrder = (e) => {
|
|||
});
|
||||
};
|
||||
|
||||
// setTimeout(() => {
|
||||
// newOrder({
|
||||
// msg: "您有一笔新的订单",
|
||||
// });
|
||||
// }, 3000);
|
||||
setTimeout(() => {
|
||||
newOrder({
|
||||
msg: "您有一笔新的订单",
|
||||
});
|
||||
}, 2000);
|
||||
|
||||
const navTo = (name) => {
|
||||
router.push({ name });
|
||||
|
|
|
@ -32,7 +32,7 @@ request.interceptors.request.use(
|
|||
request.interceptors.response.use(
|
||||
response => {
|
||||
// 对响应数据做些什么,例如解析数据、统一处理错误等
|
||||
if (response.data.code === 401 || response.data.code === 40000 || (response.data.code === -1 && response.data.msg === '登录超时,请重新登录')) {
|
||||
if (response.data.code === 401 || response.data.code === 40000 || (response.data.code === -1 && response.data.msg == '登录超时,请重新登录')) {
|
||||
ElMessage({
|
||||
message: response.data.msg,
|
||||
type: 'error',
|
||||
|
|
|
@ -124,6 +124,7 @@ onMounted(() => {
|
|||
});
|
||||
onUnmounted(()=>{
|
||||
mitt.off("update-c-order-detail");
|
||||
mitt.off("new_order");
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue