feat(update onchange route values):
This commit is contained in:
parent
b5b3c616dc
commit
651dfd93a5
@ -93,7 +93,7 @@ export default {
|
||||
})
|
||||
},
|
||||
parseNumber (value) {
|
||||
if (!value || value !== 0) return 0
|
||||
if (isNaN(parseFloat(value)) || !value && value !== 0) return 0
|
||||
return parseFloat(value)
|
||||
},
|
||||
removeCurrentRoute() {
|
||||
|
||||
@ -108,7 +108,7 @@ const actions = {
|
||||
const newRoute = {
|
||||
"path": null,
|
||||
"role": null,
|
||||
id: Math.random().toString(36).slice(4),
|
||||
id: Math.floor(100000 + Math.random() * 900000),
|
||||
action: "create",
|
||||
server_id: getters.selectedSite.id
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user