fix change detection
This commit is contained in:
@@ -76,8 +76,8 @@ export const FindDiff = {
|
||||
|
||||
// Check if both objects are plain objects
|
||||
if (typeof obj1 === 'object' && typeof obj2 === 'object' && obj1 !== null && obj2 !== null) {
|
||||
const keys1 = Object.keys(obj1)
|
||||
const keys2 = Object.keys(obj2)
|
||||
const keys1 = Object.keys(obj1).filter(key => obj1[key] !== undefined)
|
||||
const keys2 = Object.keys(obj2).filter(key => obj2[key] !== undefined)
|
||||
|
||||
if (keys1.length !== keys2.length) {
|
||||
return false
|
||||
|
||||
@@ -242,6 +242,7 @@ const saveModal = (data:Inbound, stats: boolean, tls_id: number, cData: any) =>
|
||||
// Update tls preset
|
||||
if (tls_id>0) {
|
||||
tlsConfigs.value.findLast(t => t.id == tls_id).inbounds.push(data.tag)
|
||||
tlsConfigs.value.sort()
|
||||
}
|
||||
|
||||
if (Object.hasOwn(data,'users')) {
|
||||
|
||||
Reference in New Issue
Block a user