3 <transition-group name="panels" tag="div" class="app-wrapper">
4 <Login class="view" key="login" v-show="view.login" @succ="loadAccounts"></Login>
5 <Home ref="Home" class="view" key="home" v-show="view.home"></Home>
11 import Home from "./framework/home";
12 import Login from "./framework/login";
13 import bytom from "./script/bytom";
27 const { currView } = this;
29 login: currView === "login",
30 home: currView === "home"
35 loadAccounts: function() {
36 bytom.Account.list().then(accounts => {
37 this.currView = accounts.length > 0 ? "home" : "login";