Commit fdd52891 authored by xxx's avatar xxx

修改

parent 65131e46
......@@ -6,6 +6,13 @@
<meta name="author" content="火星科技 http://mars3d.cn ">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" >
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<script src="https://cdn.bootcss.com/eruda/1.5.8/eruda.min.js"></script>
<script>
eruda.init();
console.log('控制台打印信息');
</script>
<!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
......
<template>
<div class="menutree">
<div>
<label v-for="menu in data" :key="menu.index">
<el-submenu :index="String(menu.id)" v-if="menu.children!=''">
<template slot="title">
<i :class="'iconfont ' + menu.icon" style="margin-right:10px;color:rgb(3,156,205);"></i>
<span>{{menu.name}}</span>
</template>
<label>
<menutree :data="menu.children"></menutree>
</label>
</el-submenu>
<el-menu-item :index="menu.path" v-else class="itemChilren">
<i :class="'iconfont ' + menu.icon" style="margin-right:10px;color:rgb(3,156,205);"></i>
<span slot="title">{{menu.name}}</span>
</el-menu-item>
</label>
</div>
</div>
</template>
<script>
import menutree from "./sidebar";
export default {
name: "menutree",
data() {
return {
};
},
components: {menutree: menutree},
props: ["data"],
mounted() {},
methods: {
getImgUrl(icon) {
return require("@/assets/" + icon);
}
}
};
</script>
<style lang="scss" scoped>
</style>
\ No newline at end of file
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 to comment