diff --git a/src/App.vue b/src/App.vue index 0ce20f5..dc127de 100644 --- a/src/App.vue +++ b/src/App.vue @@ -33,7 +33,8 @@ export default { return flagPc; } var flagZt = IsPC(); - console.log(flagZt) //true为PC端,false为手机端 + console.log(flagZt) + this.$store.commit('updateModelType', flagZt) } }; diff --git a/src/components/menuTree/tree.vue b/src/components/menuTree/tree.vue new file mode 100644 index 0000000..d614e95 --- /dev/null +++ b/src/components/menuTree/tree.vue @@ -0,0 +1,36 @@ + + + + + \ No newline at end of file diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index 992663c..29adb62 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -3,16 +3,50 @@ - -
- - -
- - - + + +
+ + +
+ + + +
-
+ + +