feat:完善舆情监测功能
This commit is contained in:
@@ -106,6 +106,7 @@ const instance = axios.create({
|
||||
*/
|
||||
instance.interceptors.request.use(
|
||||
(config) => {
|
||||
console.log(config, 'config')
|
||||
// 规范写法 不可随意自定义
|
||||
let urlParams = {}
|
||||
if (config.params) {
|
||||
|
||||
@@ -41,10 +41,11 @@ export function getHotWordApi() {
|
||||
}
|
||||
|
||||
// 舆情指数
|
||||
export function getLineChartApi() {
|
||||
export function getLineChartApi(data) {
|
||||
return request({
|
||||
url: '/api/largeScreen/gsdata/lineChart',
|
||||
method: 'post'
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -55,3 +56,11 @@ export function getAreaApi() {
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
// 景区选择
|
||||
export function getSpotApi() {
|
||||
return request({
|
||||
url: '/api/largeScreen/gsdata/spot',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user