fix: 修复项目运行时eslint报错的提示

This commit is contained in:
刘洪洪
2023-03-02 17:55:47 +08:00
parent 5685e6b2c0
commit 3fc6a42d99
5 changed files with 21 additions and 23 deletions

View File

@@ -1,6 +1,5 @@
import router from './router'
import store from './store'
import { ElMessage } from 'element-plus'
import { getPermission } from '@/utils/api'
import { loadGeoData } from '@/utils/tools'
import axios from 'axios'
@@ -18,6 +17,7 @@ router.beforeEach(async (to, from, next) => {
loadGeoData()
// 加载baseUrl
if (!axios.defaults.baseURL) {
// eslint-disable-next-line no-undef
axios.defaults.baseURL = BASE_CONFIG.baseUrl
}
if (localStorage.getItem(storageKey.token)) {
@@ -81,7 +81,7 @@ export function hasMenu (menuList, route) {
export function hasParam (url, param) {
let hasParam = false
let tempArr = url.split('?')
const query = {}
// const query = {}
if (tempArr[1]) {
tempArr = tempArr[1].split('&')
tempArr.forEach(t => {