@@ -70,11 +70,12 @@ const store = new Vuex.Store({
7070 state : {
7171 host : '' ,
7272 // host: 'http://localhost:8007/',
73+ pageCount : 1 ,
7374 uri : {
7475 connections : [ ] ,
7576 type : 'table' ,
7677 path : [ ] ,
77- page : { ' number' : 1 , ' size' : 15 , 'count' : 1 } ,
78+ page : { number : 1 , size : 15 } ,
7879 orderby : { }
7980 }
8081 } ,
@@ -102,7 +103,7 @@ const store = new Vuex.Store({
102103 return state . uri . page
103104 } ,
104105 getPageCount : state => {
105- return state . uri . page . count
106+ return state . pageCount
106107 } ,
107108 getPageNumber : state => {
108109 return state . uri . page . number
@@ -117,7 +118,7 @@ const store = new Vuex.Store({
117118 } ,
118119 skipObjectUri ( state , type ) {
119120 const c = state . uri . connections
120- state . uri = { " connections" : c , " type" : type , " path" : [ ] , " orderby" : { } , page : { ' number' : 1 , ' size' : 15 , 'count' : 1 } }
121+ state . uri = { connections : c , type : type , path : [ ] , orderby : { } , page : { number : 1 , size : 15 } }
121122 } ,
122123 setType ( state , typeName ) {
123124 state . uri . type = typeName
@@ -142,10 +143,10 @@ const store = new Vuex.Store({
142143 state . uri . page . size = parseInt ( val . split ( ',' ) [ 1 ] )
143144 } ,
144145 setPageCount ( state , count ) {
145- state . uri . page . count = count
146+ state . pageCount = count
146147 } ,
147148 increasePageCount ( state ) {
148- state . uri . page . count ++
149+ state . pageCount ++
149150 } ,
150151 changeUri ( state , uriString ) {
151152 const parse = require ( 'url-parse' )
0 commit comments