feat: 抽屉中的数据加载问题优化
This commit is contained in:
@@ -36,8 +36,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from "vue";
|
||||
import { onShow } from "@dcloudio/uni-app";
|
||||
import { ref, onMounted } from "vue";
|
||||
import { getLoginUserPhone } from "@/request/api/LoginApi";
|
||||
|
||||
// 假数据
|
||||
@@ -60,8 +59,8 @@ const menuList = ref([
|
||||
{ label: "订阅消息", type: "action", action: "subscribeMessage" },
|
||||
]);
|
||||
|
||||
// 页面生命周期钩子 - 页面显示时调用
|
||||
onShow(() => {
|
||||
// 组件挂载时调用
|
||||
onMounted(() => {
|
||||
getLoginUserPhoneInfo();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user