Skip to content

Commit

Permalink
delete something
Browse files Browse the repository at this point in the history
  • Loading branch information
Levan-Du committed Jun 16, 2017
1 parent 6aaf47e commit 718a92a
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/vmodels/app.vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,8 @@ import Router from '../routes/router';

define({
$id: 'app',
tabItems: [{
id: 10000,
name: 'home',
title: '首页',
path: '/home',
tmpl: '<ms-homepage slot="page" />',
checked: true,
pid: 10000
}],
tabItems: [],
routeHandler(tabitem, index) {
// console.log(this.tabItems,tabitem,index);

var preindex = this.tabItems.findIndex(el => el.checked);
if (preindex >= 0) {
this.tabItems[preindex].checked = false;
Expand All @@ -38,8 +28,5 @@ define({
this.tabItems.removeAt(i);
var path = this.tabItems[i - 1].path;
Router.redirect(path);
},
hashclick(e) {
location.hash = '/home';
}
});

0 comments on commit 718a92a

Please sign in to comment.