Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
T
topology-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
姜立玮
topology-ui
Commits
8524023c
提交
8524023c
authored
12月 07, 2022
作者:
姜立玮
🤼
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改代理
上级
2ca29564
变更
5
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
443 行增加
和
4 行删除
+443
-4
topology.html
public/topology.html
+433
-0
Images.vue
src/components/topology/modules/Images.vue
+2
-1
mainproxy.js
src/utils/mainproxy.js
+1
-0
request.js
src/utils/request.js
+6
-2
vue.config.js
vue.config.js
+1
-1
没有找到文件。
public/topology.html
0 → 100644
浏览文件 @
8524023c
此差异已折叠。
点击以展开。
src/components/topology/modules/Images.vue
浏览文件 @
8524023c
...
...
@@ -73,6 +73,7 @@
</
template
>
<
script
>
import
{
upload
,
deleteImages
,
list
}
from
"@/api/images.js"
;
import
{
mainProxy
}
from
'@/utils/mainproxy'
export
default
{
data
()
{
return
{
...
...
@@ -80,7 +81,7 @@ export default {
open
:
false
,
url
:
""
,
imageList
:
[],
baseapi
:
process
.
env
.
VUE_APP_BASE_API
,
baseapi
:
mainProxy
,
fit
:
"fill"
,
};
},
...
...
src/utils/mainproxy.js
0 → 100644
浏览文件 @
8524023c
export
const
mainProxy
=
window
.
document
.
location
.
pathname
.
substring
(
0
,
window
.
document
.
location
.
pathname
.
indexOf
(
"/topology.html"
))
||
"/"
\ No newline at end of file
src/utils/request.js
浏览文件 @
8524023c
...
...
@@ -2,12 +2,16 @@ import axios from 'axios'
import
errorCode
from
'@/utils/errorCode'
import
{
Notification
,
MessageBox
,
Message
}
from
'element-ui'
import
{
urlParse
}
from
'@/utils/ruoyi'
import
Vue
from
'vue'
import
{
mainProxy
}
from
'@/utils/mainproxy'
axios
.
defaults
.
headers
[
'Content-Type'
]
=
'application/json;charset=utf-8'
console
.
log
(
mainProxy
)
// 创建axios实例
const
service
=
axios
.
create
({
// axios中请求配置有baseURL选项,表示请求URL公共部分
baseURL
:
process
.
env
.
VUE_APP_BASE_API
,
// baseURL: process.env.VUE_APP_BASE_API,
baseURL
:
mainProxy
,
// 超时
timeout
:
10000
})
...
...
vue.config.js
浏览文件 @
8524023c
...
...
@@ -31,7 +31,7 @@ module.exports = {
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://localhost:7777`
,
target
:
'http://127.0.0.1:7777'
,
changeOrigin
:
true
,
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论