修改编辑
This commit is contained in:
parent
2d232af76c
commit
a1cdc4a41b
@ -38,8 +38,19 @@ export default {
|
||||
|
||||
let tab = ref("person"); // person intermediary more
|
||||
|
||||
if (props['intermediary'] == 1) tab.value = "intermediary"
|
||||
else tab.value = "person"
|
||||
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({});
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user