修改编辑

This commit is contained in:
A1300399510
2023-08-11 14:20:00 +08:00
parent 2d232af76c
commit a1cdc4a41b
2 changed files with 14 additions and 3 deletions

View File

@@ -38,9 +38,20 @@ export default {
let tab = ref("person"); // person intermediary more
if (props['intermediary'] == 1) tab.value = "intermediary"
console.log("props['intermediary']", props['intermediary']);
// if (props['intermediary'] == 1) tab.value = "intermediary"
// else tab.value = "person"
watch(() => props.popState, (newValue, oldValue) => {
// 在这里处理popState属性的变化
console.log('popState属性发生变化', newValue, oldValue);
if (newValue == 1) tab.value = "intermediary"
else tab.value = "person"
// 其他逻辑...
});
const cutTabArray = reactive({});
// 监听 prop 变化

View File

@@ -941,7 +941,7 @@ export default {
this.token = urlParams.get('token');
this.intermediary = urlParams.get('intermediary') || 3; // 默认写房东吧
// this.verified = urlParams.get('verified') || 0;
console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
this.userIntermediary = this.$store.state.user['intermediary']
this.init();