feat:对接舆情监测相关接口

This commit is contained in:
zjc
2024-12-25 18:17:00 +08:00
parent 45c85763dd
commit 50a6b06381
23 changed files with 532 additions and 214 deletions

View File

@@ -1,7 +1,9 @@
import axios from 'axios'
import qs from 'qs'
import router from '@/router'
import { Message } from 'element-ui'
import { useRouter } from 'vue-router'
import { ElMessage } from 'element-plus'
const router = useRouter()
const CODE_MESSAGE = {
200: '服务器成功返回请求数据',
@@ -79,7 +81,7 @@ const handleData = async ({ data, status, statusText }) => {
} else {
// 是否显示高亮错误(与errorHandler钩子触发逻辑一致)
// $baseMessage(errMsg, 'error', 'vab-hey-message-error', false)
Message({
ElMessage({
message: errMsg,
type: 'error',
duration: 5 * 1000
@@ -92,7 +94,7 @@ const handleData = async ({ data, status, statusText }) => {
* @description axios初始化
*/
const instance = axios.create({
baseURL: '/dq_api',
baseURL: 'http://36.138.38.16:8001/fjtcc-api',
timeout: 100000,
headers: {
'Content-Type': 'application/json;charset=UTF-8'