Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
a06b18a4
提交
a06b18a4
authored
10月 15, 2026
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 移除学校环境配置,优化 AI 处理逻辑与请求拦截
上级
40ac72f7
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
4 行增加
和
8 行删除
+4
-8
.env.school
.env.school
+0
-3
package.json
package.json
+1
-0
useAI.js
src/composables/useAI.js
+1
-1
FormDialog.vue
src/modules/connect/components/FormDialog.vue
+2
-0
axios.ts
src/utils/axios.ts
+0
-4
没有找到文件。
.env.school
deleted
100644 → 0
浏览文件 @
40ac72f7
# 学校部署:登录与问卷地址从浏览器主机名读取,端口分别为 1001、1011。
# 本地接口返回的文件地址使用学校部署的 saas-lab-api 域名。
VITE_STATIC_URL=https://saas-lab-api
package.json
浏览文件 @
a06b18a4
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
"type"
:
"module"
,
"type"
:
"module"
,
"scripts"
:
{
"scripts"
:
{
"dev"
:
"vite --mode dev"
,
"dev"
:
"vite --mode dev"
,
"dev:school"
:
"vite --mode school"
,
"build"
:
"npm run typecheck && vite build --mode prod && npm run deploy"
,
"build"
:
"npm run typecheck && vite build --mode prod && npm run deploy"
,
"build:prod"
:
"npm run typecheck && vite build --mode prod"
,
"build:prod"
:
"npm run typecheck && vite build --mode prod"
,
"build:school"
:
"npm run typecheck && vite build --mode school"
,
"build:school"
:
"npm run typecheck && vite build --mode school"
,
...
...
src/composables/useAI.js
浏览文件 @
a06b18a4
...
@@ -22,7 +22,7 @@ export function useAI(config) {
...
@@ -22,7 +22,7 @@ export function useAI(config) {
try
{
try
{
switch
(
ai
.
value
)
{
switch
(
ai
.
value
)
{
case
'yiyan'
:
case
'yiyan'
:
await
yiya
n
(
data
)
await
qwe
n
(
data
)
break
break
case
'deepseek'
:
case
'deepseek'
:
await
qwen
(
data
)
await
qwen
(
data
)
...
...
src/modules/connect/components/FormDialog.vue
浏览文件 @
a06b18a4
...
@@ -26,6 +26,7 @@ const platformList: PlatformItem[] = [
...
@@ -26,6 +26,7 @@ const platformList: PlatformItem[] = [
async
onBeforeNext
(
stepActive
)
{
async
onBeforeNext
(
stepActive
)
{
if
(
stepActive
===
2
)
{
if
(
stepActive
===
2
)
{
const
res
=
await
handleSubmit
()
const
res
=
await
handleSubmit
()
if
(
import
.
meta
.
env
.
MODE
===
'school'
)
return
true
const
{
data
}
=
await
getWechatAuth
({
connection_id
:
res
.
id
,
redirect_uri
:
location
.
href
,
auth_type
:
1
})
const
{
data
}
=
await
getWechatAuth
({
connection_id
:
res
.
id
,
redirect_uri
:
location
.
href
,
auth_type
:
1
})
location
.
href
=
'https://webapp-pub.ezijing.com/auth.html?redirect_uri='
+
encodeURIComponent
(
data
.
url
)
location
.
href
=
'https://webapp-pub.ezijing.com/auth.html?redirect_uri='
+
encodeURIComponent
(
data
.
url
)
return
false
return
false
...
@@ -144,6 +145,7 @@ const platformList: PlatformItem[] = [
...
@@ -144,6 +145,7 @@ const platformList: PlatformItem[] = [
async
onBeforeNext
(
stepActive
)
{
async
onBeforeNext
(
stepActive
)
{
if
(
stepActive
===
2
)
{
if
(
stepActive
===
2
)
{
const
res
=
await
handleSubmit
()
const
res
=
await
handleSubmit
()
if
(
import
.
meta
.
env
.
MODE
===
'school'
)
return
true
const
{
data
}
=
await
getWechatAuth
({
connection_id
:
res
.
id
,
redirect_uri
:
location
.
href
,
auth_type
:
2
})
const
{
data
}
=
await
getWechatAuth
({
connection_id
:
res
.
id
,
redirect_uri
:
location
.
href
,
auth_type
:
2
})
location
.
href
=
data
.
url
location
.
href
=
data
.
url
return
false
return
false
...
...
src/utils/axios.ts
浏览文件 @
a06b18a4
...
@@ -51,10 +51,6 @@ httpRequest.interceptors.response.use(
...
@@ -51,10 +51,6 @@ httpRequest.interceptors.response.use(
ElMessage
.
error
(
data
.
message
||
data
.
msg
)
ElMessage
.
error
(
data
.
message
||
data
.
msg
)
return
Promise
.
reject
(
data
)
return
Promise
.
reject
(
data
)
}
}
if
(
import
.
meta
.
env
.
MODE
===
'school'
&&
import
.
meta
.
env
.
VITE_STATIC_URL
)
{
const
json
=
JSON
.
stringify
(
data
)
return
JSON
.
parse
(
json
.
replace
(
/https
?
:
\/\/[^/\s
"
\\]
*saas-lab-api
[^/\s
"
\\]
*/gi
,
import
.
meta
.
env
.
VITE_STATIC_URL
))
}
return
data
return
data
},
},
function
(
error
)
{
function
(
error
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论