...
|
...
|
@@ -14,8 +14,7 @@ |
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
// const tab = require('channel/tab.vue');
|
|
|
// const resources = require('component/resources/index.vue');
|
|
|
const interceptClick = require('common/intercept-click');
|
|
|
|
|
|
module.exports = {
|
|
|
data() {
|
...
|
...
|
@@ -23,14 +22,19 @@ |
|
|
list: []
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
|
},
|
|
|
created() {
|
|
|
$.ajax({
|
|
|
url: '/sidebar'
|
|
|
}).then((res) => {
|
|
|
this.list = res.data;
|
|
|
});
|
|
|
},
|
|
|
ready() {
|
|
|
$('.sidebar').on('click', 'a', function() {
|
|
|
// 拦截跳转
|
|
|
interceptClick($(this).attr('href'));
|
|
|
return false;
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
</script>
|
...
|
...
|
|