Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zentaoatf
提交
68b8f1ed
Z
zentaoatf
项目概览
易企天创
/
zentaoatf
9 个月 前同步成功
通知
11
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zentaoatf
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
68b8f1ed
编写于
7月 15, 2022
作者:
Z
zhaoke
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* Fix add site issue.
上级
ed13fd67
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
9 deletion
+14
-9
internal/pkg/helper/script/asset.go
internal/pkg/helper/script/asset.go
+7
-6
internal/pkg/helper/zentao/zentao.go
internal/pkg/helper/zentao/zentao.go
+5
-1
makefile-command.linux
makefile-command.linux
+1
-1
ui/src/views/script/WorkDir.vue
ui/src/views/script/WorkDir.vue
+1
-1
未找到文件。
internal/pkg/helper/script/asset.go
浏览文件 @
68b8f1ed
...
...
@@ -3,6 +3,12 @@ package scriptHelper
import
(
"encoding/json"
"fmt"
"io/ioutil"
"path"
"regexp"
"strconv"
"strings"
commConsts
"github.com/easysoft/zentaoatf/internal/pkg/consts"
commDomain
"github.com/easysoft/zentaoatf/internal/pkg/domain"
langHelper
"github.com/easysoft/zentaoatf/internal/pkg/helper/lang"
...
...
@@ -15,11 +21,6 @@ import (
logUtils
"github.com/easysoft/zentaoatf/pkg/lib/log"
stringUtils
"github.com/easysoft/zentaoatf/pkg/lib/string"
"github.com/kataras/iris/v12"
"io/ioutil"
"path"
"regexp"
"strconv"
"strings"
)
func
LoadScriptTreeByDir
(
workspace
model
.
Workspace
,
scriptIdsFromZentao
map
[
int
]
string
)
(
asset
serverDomain
.
TestAsset
,
err
error
)
{
...
...
@@ -36,7 +37,7 @@ func LoadScriptTreeByDir(workspace model.Workspace, scriptIdsFromZentao map[int]
WorkspaceId
:
workspaceId
,
WorkspaceType
:
workspace
.
Type
,
Path
:
workspaceDir
,
Title
:
fileUtils
.
GetDirName
(
workspaceDir
)
,
Title
:
workspace
.
Name
,
Slots
:
iris
.
Map
{
"icon"
:
"icon"
},
Checkable
:
true
,
...
...
internal/pkg/helper/zentao/zentao.go
浏览文件 @
68b8f1ed
...
...
@@ -352,7 +352,11 @@ func FixSiteUlt(url string) (ret string) {
ret
=
url
}
else
{
index
:=
strings
.
LastIndex
(
url
,
"/"
)
ret
=
url
[
:
index
+
1
]
if
url
[
index
+
1
:
]
!=
"zentao"
{
ret
=
url
[
:
index
+
1
]
}
else
{
ret
=
url
}
}
return
...
...
makefile-command.linux
浏览文件 @
68b8f1ed
...
...
@@ -17,7 +17,7 @@ BUILD_CMD=go build -ldflags "-X 'commConsts.appVersion=${VERSION}' -X 'commConst
default: win64 win32 linux mac
win64: prepare build_gui_win64 compile_command_win64 copy_files_win64 create_shortcut_win64 zip_win64
win32: prepare build_gui_win32 compile_command_win32 copy_files_win32 create_shortcut_win32 zip_win32
win32: prepare
compile_ui
build_gui_win32 compile_command_win32 copy_files_win32 create_shortcut_win32 zip_win32
linux: prepare build_gui_linux compile_command_linux copy_files_linux create_shortcut_linux zip_linux
mac: prepare build_gui_mac compile_command_mac copy_files_mac create_shortcut_mac zip_mac
...
...
ui/src/views/script/WorkDir.vue
浏览文件 @
68b8f1ed
...
...
@@ -602,7 +602,7 @@ const syncFromZentaoSubmit = (model) => {
store
.
dispatch
(
"
Script/syncFromZentao
"
,
model
).
then
((
resp
)
=>
{
if
(
resp
.
code
===
0
)
{
notification
.
success
({
message
:
t
(
"
sync_success
"
),
message
:
t
(
"
sync_success
"
,
{
success
:
resp
.
data
.
length
,
ignore
:
0
}
),
});
showSyncFromZentaoModal
.
value
=
false
;
syncFromZentaoRef
.
value
.
clearFormData
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录