Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage-go
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tracing
source-trace-manage-go
Commits
fb9dae7d
Commit
fb9dae7d
authored
Aug 30, 2021
by
wcmoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 模版为空时报错
parent
20904b6c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
5 deletions
+3
-5
Template.ts
src/plugins/Template.ts
+1
-1
types2.ts
src/plugins/types2.ts
+0
-1
readOnly.vue
src/views/template/readOnly.vue
+0
-1
sy.sh
sy.sh
+2
-2
No files found.
src/plugins/Template.ts
View file @
fb9dae7d
...
...
@@ -240,7 +240,7 @@ export function formatTemplateApi2Local(apiList: RootUnitType[]): Unit[] {
})
}
else
{
let
list
=
[];
let
o
=
JSON
.
parse
((
rootUnit
.
data
as
{
value
:
string
}).
value
||
'{}'
);
let
o
=
JSON
.
parse
((
rootUnit
.
data
as
{
value
:
string
})
?
.
value
||
'{}'
);
for
(
let
i
in
o
)
{
list
.
push
({
type
:
0
,
...
...
src/plugins/types2.ts
View file @
fb9dae7d
...
...
@@ -15,7 +15,6 @@ export class Unit {
this
.
children
=
[];
this
.
parent
=
parent
||
null
;
this
.
type
=
unitType
||
PropertyType
.
Unit
;
console
.
log
(
this
.
type
);
// this.data = data || {}
}
...
...
src/views/template/readOnly.vue
View file @
fb9dae7d
...
...
@@ -248,7 +248,6 @@ export default {
})
}
element
.
data
=
list
;
console
.
log
(
element
);
// this.$forceUpdate();
}
...
...
sy.sh
View file @
fb9dae7d
rm
-rf
sy
mv
dist sy
tar
-czf
sy.tar sy
scp sy.tar root@47.114.159.142:/usr/share/nginx/sy.tar
scp sy.tar root@47.114.159.142:/usr/share/nginx/
html/
sy.tar
rm
-rf
sy.tar
ssh root@47.114.159.142
'cd /usr/share/nginx && rm -rf sy && tar -xzf sy.tar && rm -rf sy.tar'
ssh root@47.114.159.142
'cd /usr/share/nginx
/html
&& rm -rf sy && tar -xzf sy.tar && rm -rf sy.tar'
echo
'done. 👉 http://47.114.159.142:8994'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment