mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-05 08:51:41 +00:00
perf: 修改 platform 更新
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
import GenericCreateUpdatePage from '@/layout/components/GenericCreateUpdatePage'
|
import GenericCreateUpdatePage from '@/layout/components/GenericCreateUpdatePage'
|
||||||
import { assetFieldsMeta } from '@/views/assets/const'
|
import { assetFieldsMeta } from '@/views/assets/const'
|
||||||
import { encryptPassword } from '@/utils/crypto'
|
import { encryptPassword } from '@/utils/crypto'
|
||||||
import { setUrlParam, getUpdateObjURL } from '@/utils/common'
|
import { getUpdateObjURL, setUrlParam } from '@/utils/common'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { GenericCreateUpdatePage },
|
components: { GenericCreateUpdatePage },
|
||||||
@@ -87,7 +87,8 @@ export default {
|
|||||||
iConfig() {
|
iConfig() {
|
||||||
const { addFields, addFieldsMeta, defaultConfig } = this
|
const { addFields, addFieldsMeta, defaultConfig } = this
|
||||||
let url = this.url
|
let url = this.url
|
||||||
if (this.$route.query.platform) {
|
const { id = '' } = this.$route.params
|
||||||
|
if (this.$route.query.platform && !id) {
|
||||||
url = setUrlParam(url, 'platform', this.$route.query.platform)
|
url = setUrlParam(url, 'platform', this.$route.query.platform)
|
||||||
}
|
}
|
||||||
// 过滤类型为:null, undefined 的元素
|
// 过滤类型为:null, undefined 的元素
|
||||||
|
Reference in New Issue
Block a user