1.关闭eslintrc.js校验

2.完成AI辅导员弹窗
3.降低了md插件版本到v13
This commit is contained in:
2025-08-14 23:26:49 +08:00
parent 2e80cc075a
commit d1658d32e3
11 changed files with 1143 additions and 667 deletions

View File

@@ -1,11 +1,11 @@
import axios from 'axios'
import { getToken } from './auth'
import { getTokenKeySessionStorage } from './auth'
import { useRouter } from 'vue-router'
import { showToast } from '@/utils/toast' // 请替换为你的Toast组件
// 创建axios实例
const service = axios.create({
baseURL: process.env.VUE_APP_API_BASE_URL || 'http://localhost:8088/aitutor/aichat',
baseURL: process.env.VUE_APP_API_BASE_URL || 'http://localhost:8088',
timeout: 15000,
headers: {
'Content-Type': 'application/json'
@@ -16,7 +16,7 @@ const service = axios.create({
service.interceptors.request.use(
config => {
// 从本地存储获取token
const token = getToken()
const token = getTokenKeySessionStorage()
if (token) {
config.headers.Authorization = `Bearer ${token}`
}