@@ -84,10 +84,21 @@ export default {
uCheckedInfos: new Map(),
uChecked: [],
refresh: true,
- oldUChecked: []
+ oldUChecked: [],
+ locationWidth: 0
}
},
mounted () {
+ const location = this.$refs.location
+ setTimeout(() => {
+ if (location && location.$el) {
+ const rect = location.$el.getBoundingClientRect()
+ const inputWidth = rect.width
+ if (inputWidth) {
+ this.locationWidth = inputWidth
+ }
+ }
+ }, 1500)
},
methods: {
toggleDropdown () {
diff --git a/nezha-fronted/src/components/page/config/mibBrowser.vue b/nezha-fronted/src/components/page/config/mibBrowser.vue
index 100bfc681..4351bee73 100644
--- a/nezha-fronted/src/components/page/config/mibBrowser.vue
+++ b/nezha-fronted/src/components/page/config/mibBrowser.vue
@@ -41,7 +41,7 @@