This commit is contained in:
@@ -226,8 +226,8 @@ export default {
|
||||
window.$gz.api
|
||||
.get("notify/hello")
|
||||
.then(res => {
|
||||
if (res.data) {
|
||||
// console.log("res.data:", res.data);
|
||||
if (res.data != null) {
|
||||
// console.log("res.data:", res.data);
|
||||
vm.trialMode = !res.data;
|
||||
}
|
||||
})
|
||||
@@ -260,7 +260,11 @@ export default {
|
||||
auth
|
||||
.authenticate(vm.input.username, vm.input.password)
|
||||
.then(() => {
|
||||
vm.$router.push(vm.$store.state.homePage);
|
||||
if (vm.$store.state.openObject) {
|
||||
window.$gz.eventBus.$emit("openobject", null);
|
||||
} else {
|
||||
vm.$router.push(vm.$store.state.homePage);
|
||||
}
|
||||
})
|
||||
.catch(function handleCaughtLoginError(error) {
|
||||
//bad creds?
|
||||
|
||||
Reference in New Issue
Block a user