|
|
@@ -98,9 +98,7 @@ import productMins from "@/mixins/product";
|
|
|
import { allProduct } from '@/api/product'
|
|
|
export default {
|
|
|
name: "admin-workbench",
|
|
|
- components: {
|
|
|
- NotLogin
|
|
|
- },
|
|
|
+ components: { NotLogin },
|
|
|
mixins: [productMins],
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -134,7 +132,8 @@ export default {
|
|
|
pfSrc: `${this.$constant.imgUrl}/ghs/home/pf.jpg`,
|
|
|
skSrc3: `${this.$constant.imgUrl}/ghs/home/sk3.jpg`,
|
|
|
pfSrc3: `${this.$constant.imgUrl}/ghs/home/pf3.jpg`,
|
|
|
- isScanEnv:false
|
|
|
+ isScanEnv:false,
|
|
|
+ isMini:0
|
|
|
};
|
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
|
@@ -222,7 +221,10 @@ export default {
|
|
|
this.setIndex()
|
|
|
},
|
|
|
setIndex(){
|
|
|
- consoleIndex().then(res => {
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
+ this.isMini = 1
|
|
|
+ // #endif
|
|
|
+ consoleIndex({isMini:this.isMini}).then(res => {
|
|
|
this.data = res.data;
|
|
|
const { asset,menu } = res.data;
|
|
|
this.tabsData = menu
|