app.vue Code
<template>
<div id="app">
<ipsa-menu style="position:relative;z-index: 999;"
userPhoto="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1536247527540&di=69b5d66745ae8a452f0f960083cd8384&imgtype=0&src=http%3A%2F%2Fpic.fxxz.com%2Fup%2F2017-9%2F2017921188403069.jpg"></ipsa-menu>
<router-view class="bodyAuto"></router-view>
</div>
</template>
<script>
export default {
name: "app",
methods:{
showErrMag(mag){
this.$Modal.error({
title: "",
content: ""+ mag +"
"
});
}
},
created(){
console.log(this.$route.path)
}
}
</script>
<style lang="less">
-sharpapp {
font-family:"PingFang SC","Microsoft YaHei","SimSun","Arial", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/*text-align: center;*/
color: -sharp2c3e50;
}
/*body{*/
/*margin: 0;*/
/*}*/
a {
color: -sharp00B7FF;
}
</style>
<script>
// @ is an alias to /src
import ipsaMenu from "@/components/ipsamenu/ipsaMenu.vue";
export default {
name: "app",
components: {
ipsaMenu
}
};
</script>
after running, the methods in created are not executed, resulting in screenshots
I haven"t found out why for a long time, and I haven"t found anything related to it on the Internet. I hope I can help you with the same problem. Thank you
.