96fb4f91 by 任超

style:api文件配置化

1 parent 49397ded
{
"TITLE": "汉中市数据上报系统",
"THEME": "jg"
"THEME": "sb",
"SERVERAPI": "/bdcsjsb",
"MANAGEMENTAPI": "http: //192.168.2.236/management"
}
\ No newline at end of file
......
/*
* @Description: 统计率
* @Autor: renchao
* @LastEditTime: 2023-03-01 15:37:49
* @LastEditTime: 2023-03-21 16:11:47
*/
/* 引入请求文件 */
import request from '@/utils/request'
......
/*
* @Description: 数据上报模块api文件
* @Autor: renchao
* @LastEditTime: 2023-03-03 14:38:57
* @LastEditTime: 2023-03-21 16:21:31
*/
/* 引入axios请求文件 */
import request from '@/utils/request'
/* 引入配置 */
import SERVER from './config'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/DataReport/'
/**
......
import Vue from 'vue'
import request from '@/utils/request'
import SERVER from './config'
// import SERVER from './config'
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
// 获取用户信息
export function getUserInfo () {
return request({
......
......@@ -42,7 +42,6 @@ const actions = {
item.path = JSON.parse(item.metadata)?.path || '/'
if (!item.parentId) {
item.component = Layout
console.log(item.component);
} else {
item.component = loadView(item.uri)
}
......