Commit 6981bc8d by 展昭

mounted->beforeMount

parent 33ba90f1
const setBarHeight = { const setBarHeight = {
mounted() { beforeMount() {
const barHeight = localStorage.getItem('barHeight'); const barHeight = localStorage.getItem('barHeight');
const conHeight = 46 + barHeight; const conHeight = 46 + barHeight;
console.log('mixins barHeight=', barHeight); console.log('mixins barHeight=', barHeight);
......
...@@ -53,13 +53,13 @@ ...@@ -53,13 +53,13 @@
import { NavBar, Icon } from "vant"; import { NavBar, Icon } from "vant";
import { TabHeader } from "@/components"; import { TabHeader } from "@/components";
import { mapActions } from "vuex"; import { mapActions } from "vuex";
//import setBarHeight from "../../assets/js/setBarHeight.js"; import setBarHeight from "../../assets/js/setBarHeight.js";
export default { export default {
components: { components: {
[Icon.name]: Icon, [Icon.name]: Icon,
TabHeader TabHeader
}, },
// mixins: [setBarHeight], mixins: [setBarHeight],
data() { data() {
return { return {
title: "", title: "",
......
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 sign in to comment