Commit 6981bc8d by 展昭

mounted->beforeMount

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