mirror of https://github.com/rancher/dashboard.git
22 lines
379 B
JavaScript
22 lines
379 B
JavaScript
import { MODE, _EDIT } from '@/config/query-params';
|
|
|
|
export default {
|
|
appEditUrl() {
|
|
return this.detailLocation;
|
|
},
|
|
|
|
goToEdit() {
|
|
return (moreQuery = {}) => {
|
|
const location = this.appEditUrl;
|
|
|
|
location.query = {
|
|
...location.query,
|
|
[MODE]: _EDIT,
|
|
...moreQuery
|
|
};
|
|
|
|
this.currentRouter().push(location);
|
|
};
|
|
},
|
|
};
|