Merge pull request #4557 from break60/dev

[Improvement-4556][ui]Repair the workflow instance, click the browser to return to the previous page, always start the query from the first page
This commit is contained in:
xingchun-chen 2021-01-25 17:03:16 +08:00 committed by GitHub
commit 8be894cb88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -95,6 +95,7 @@
* Query
*/
_onQuery (o) {
this.searchParams.pageNo = 1
this.searchParams = _.assign(this.searchParams, o)
setUrlParams(this.searchParams)
this._debounceGET()

View File

@ -14,9 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import merge from 'webpack-merge'
import router from '@/conf/home/router'
export function setUrlParams (o) {
// router.push({
// query: merge(router.history.current.query, o)
// })
router.push({
query: merge(router.history.current.query, o)
})
}