Commit a709a88e authored by 罗超's avatar 罗超

1

parent 852491c9
...@@ -131,12 +131,13 @@ import { ...@@ -131,12 +131,13 @@ import {
} from "vue"; } from "vue";
import { getIndexInfo } from "../../api/index"; import { getIndexInfo } from "../../api/index";
import { getSystemInfo, desensitization } from "../../utils/index"; import { getSystemInfo, desensitization } from "../../utils/index";
import request from "../../utils/request.js";
export default { export default {
name: "", name: "",
props: {}, props: {},
components: {}, components: {},
setup(props) { setup(props) {
let { ctx } = getCurrentInstance();
ctx.$isLogin();
let data = reactive({ let data = reactive({
statusBarHeight: 0, statusBarHeight: 0,
userinfo: {}, userinfo: {},
...@@ -251,16 +252,12 @@ export default { ...@@ -251,16 +252,12 @@ export default {
}; };
}, },
onLoad() { onLoad() {
// let { ctx } = getCurrentInstance();
// ctx.$test("首页");
// this.$test("首页");
// console.log(256, this);
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: "首页", title: "首页",
}); });
}, },
onShow() { onShow() {
console.log("index Show"); // console.log("index Show");
}, },
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment