Commit 6cb5f2d6 by 胡锦波

1. init 去除首页,默认通讯录地址

2. init sdk开头
parent 712fae48
import { metaRow, UniplatSdk, UniplatSdkExtender, SdkListRowPredict, SdkListRowPredictObject } from "uniplat-sdk";
import { TokenManager, UserController } from "./token";
class Sdk {
private setuped = false;
private uniplatSdk!: UniplatSdk;
public getSdkInstance() {
if (this.uniplatSdk) {
return this.uniplatSdk;
}
return (this.uniplatSdk = new UniplatSdk());
}
public setup(callback?: (success: boolean) => void) {
if (this.setuped) {
return callback && callback(this.setuped);
}
TokenManager.getUserTokenString().then(user => {
// this.run(user, callback);
});
}
}
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
} }
private goHome() { private goHome() {
this.go(Direction.Home); this.go(Direction.AddressBook);
} }
private getTeammixEnterPriseSelectorEnvironment() { private getTeammixEnterPriseSelectorEnvironment() {
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
EnterpriseHost.setOid(item.id); EnterpriseHost.setOid(item.id);
const resolve = this.$router.resolve({ const resolve = this.$router.resolve({
name: Direction[Direction.Home], name: Direction[Direction.AddressBook],
}); });
window.location.href = resolve.href; window.location.href = resolve.href;
} }
......
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 sign in to comment