修改编辑
This commit is contained in:
@@ -38,8 +38,19 @@ export default {
|
|||||||
|
|
||||||
let tab = ref("person"); // person intermediary more
|
let tab = ref("person"); // person intermediary more
|
||||||
|
|
||||||
if (props['intermediary'] == 1) tab.value = "intermediary"
|
console.log("props['intermediary']", props['intermediary']);
|
||||||
else tab.value = "person"
|
// 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({});
|
const cutTabArray = reactive({});
|
||||||
|
|
||||||
|
|||||||
@@ -941,7 +941,7 @@ export default {
|
|||||||
this.token = urlParams.get('token');
|
this.token = urlParams.get('token');
|
||||||
this.intermediary = urlParams.get('intermediary') || 3; // 默认写房东吧
|
this.intermediary = urlParams.get('intermediary') || 3; // 默认写房东吧
|
||||||
// this.verified = urlParams.get('verified') || 0;
|
// this.verified = urlParams.get('verified') || 0;
|
||||||
|
console.log("urlParams.get('intermediary')",urlParams.get('intermediary'));
|
||||||
this.userIntermediary = this.$store.state.user['intermediary']
|
this.userIntermediary = this.$store.state.user['intermediary']
|
||||||
|
|
||||||
this.init();
|
this.init();
|
||||||
|
|||||||
Reference in New Issue
Block a user