File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ module.exports = {
16
16
17
17
async getAllEmptyKeysCount ( ctx , next ) {
18
18
try {
19
- const data = await Key . findAllByEmail ( null )
20
- ctx . body = { msg : 1001 , data }
19
+ const { count } = await Key . findAllByEmail ( null )
20
+ ctx . body = { msg : 1001 , data : count }
21
21
} catch ( err ) {
22
22
ctx . body = { code : - 1 , msg : 1000 , }
23
23
}
Original file line number Diff line number Diff line change 61
61
</template >
62
62
63
63
<script >
64
- // import 'no-debugger'
64
+ import ' no-debugger'
65
65
import axios from ' axios'
66
66
export default {
67
67
name: ' App' ,
@@ -81,8 +81,8 @@ export default {
81
81
handleAllEmptyKeysCount () {
82
82
axios .get (' /api/getAllEmptyKeysCount' )
83
83
.then ((response ) => {
84
- const { data: { data: { count } } } = response
85
- this .count = count
84
+ const { data: { data } } = response
85
+ this .count = data
86
86
})
87
87
},
88
88
handleQuestion () {
You can’t perform that action at this time.
0 commit comments