Skip to content

Commit

Permalink
build代码 生成第一个版本数据
Browse files Browse the repository at this point in the history
  • Loading branch information
upuptop committed Sep 23, 2019
1 parent cf47e65 commit 287b529
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>mytestprocc</title>
<title>JSON在线对比工具 by upuptop</title>
</head>
<body>
<div id="app"></div>
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "mytestprocc",
"name": "UpuptopJsonDiff",
"version": "1.0.0",
"description": "A Vue.js project",
"author": "upuptop <[email protected]>",
Expand Down
8 changes: 5 additions & 3 deletions src/components/JsonDiffPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<Col span="12">
<Input v-model="jsonTwo" class="area_input" type="textarea" :rows="4"
placeholder="请输入第一个json串"></Input>
placeholder="请输入第二个json串"></Input>
</Col>
</Row>

Expand All @@ -45,13 +45,13 @@
<Row>
<Col span="12">
<div class="json_viewer_div">
<json-view :deep="5" :closed="isClosed" :data="JSON.parse(jsonOne)"
<json-view :deep="jsonDeep" :closed="isClosed" :data="JSON.parse(jsonOne)"
v-if="this.jsUtil.isJSON(jsonOne)"/>
</div>
</Col>
<Col span="12">
<div class="json_viewer_div">
<json-view :deep="5" :closed="isClosed" :data="JSON.parse(jsonTwo)"
<json-view :deep="jsonDeep" :closed="isClosed" :data="JSON.parse(jsonTwo)"
v-if="this.jsUtil.isJSON(jsonTwo)"/>
</div>
</Col>
Expand Down Expand Up @@ -92,6 +92,7 @@
return {
// json: jsonData,
isClosed: false,
jsonDeep: 1,
jsonOne: "",
jsonTwo: "",
jsUtil: jsUtil
Expand Down Expand Up @@ -120,6 +121,7 @@
methods: {
close(flag) {
this.isClosed = flag
this.jsonDeep = 5
},
sortOneData() {
Expand Down
5 changes: 4 additions & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export default new Router({
{
path: '/',
name: 'HelloWorld',
component: HelloWorld
component: HelloWorld,
meta: {
title: 'JSON在线对比工具 by upuptop'
}
}
]
})

0 comments on commit 287b529

Please sign in to comment.