|
@@ -29,10 +29,17 @@ import tab2Active from "../assets/imgs/tab2_active.png";
|
|
|
import tab3 from "../assets/imgs/tab3.png";
|
|
|
import tab3Active from "../assets/imgs/tab3_active.png";
|
|
|
import { getStuInfo } from "@/api/user";
|
|
|
+import bus from "@/utils/bus";
|
|
|
const active = ref(0);
|
|
|
const showMiddle = ref(false);
|
|
|
-getStuInfo().then((res) => {
|
|
|
- showMiddle.value = res?.selfApplyEnable;
|
|
|
+const getRole = () => {
|
|
|
+ getStuInfo().then((res) => {
|
|
|
+ showMiddle.value = res?.selfApplyEnable;
|
|
|
+ });
|
|
|
+};
|
|
|
+getRole();
|
|
|
+bus.on("updateBottomBar", () => {
|
|
|
+ getRole();
|
|
|
});
|
|
|
</script>
|
|
|
<style lang="" scoped></style>
|