File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 78
78
79
79
<script >
80
80
// @ is an alias to /src
81
- import util from ' ../../util/date'
81
+ import util from " ../../util/date" ;
82
82
83
83
export default {
84
84
name: " home" ,
@@ -95,9 +95,11 @@ export default {
95
95
this .getData ();
96
96
},
97
97
methods: {
98
- formatCreateTime : function (row ) {
99
- return (! row .bCreateTime || row .bCreateTime == ' ' ) ? ' ' : util .formatDate .format (new Date (row .bCreateTime ), ' yyyy-MM-dd' );
100
- },
98
+ formatCreateTime : function (row ) {
99
+ return ! row .bCreateTime || row .bCreateTime == " "
100
+ ? " "
101
+ : util .formatDate .format (new Date (row .bCreateTime ), " yyyy-MM-dd" );
102
+ },
101
103
getData () {
102
104
var that = this ;
103
105
var urlPage = that .$route .query .page ;
@@ -113,7 +115,7 @@ export default {
113
115
}
114
116
},
115
117
watch: {
116
- $route (to, from ) {
118
+ $route (to) {
117
119
this .list = [];
118
120
this .isShow = true ;
119
121
this .page = to .query .page ;
@@ -124,7 +126,7 @@ export default {
124
126
</script >
125
127
126
128
<style >
127
- article .newhome {
128
- width : 1200px ;
129
- }
129
+ article .newhome {
130
+ width : 1200px ;
131
+ }
130
132
</style >
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ export default {
109
109
}
110
110
},
111
111
watch: {
112
- $route (to, from ) {
112
+ $route (to) {
113
113
this .list = [];
114
114
this .isShow = true ;
115
115
this .page = to .query .page ;
@@ -120,7 +120,7 @@ export default {
120
120
</script >
121
121
122
122
<style >
123
- article .newhome {
124
- width : 1200px ;
125
- }
123
+ article .newhome {
124
+ width : 1200px ;
125
+ }
126
126
</style >
You can’t perform that action at this time.
0 commit comments