From 8d3c5abece03c5969f336083d5d7218cbae0b4d5 Mon Sep 17 00:00:00 2001 From: peiyanni Date: Sun, 18 Jul 2021 14:30:14 +0800 Subject: [PATCH] Update upload.js --- report-ui/src/api/upload.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/report-ui/src/api/upload.js b/report-ui/src/api/upload.js index 192e7e2f..0bb4d08d 100644 --- a/report-ui/src/api/upload.js +++ b/report-ui/src/api/upload.js @@ -1,6 +1,6 @@ import axios from 'axios'; import { Message, MessageBox } from 'element-ui'; -import { setItem, getItem, delItem } from '@/utils/storage'; +import { delItem } from '@/utils/storage'; axios.defaults.baseURL = process.env.BASE_API // axios.defaults.baseURL = 'http://10.108.12.23:8080' // 德明本地 @@ -33,7 +33,6 @@ service.interceptors.response.use( console.log(1) sessionStorage.clear(); localStorage.clear(); - delItem('token') // location.reload(); window.location.href = "/"; }).catch(err => {