|
@@ -49,6 +49,7 @@ export class PageMineComponent implements OnInit {
|
|
this.currentUser = new CloudUser();
|
|
this.currentUser = new CloudUser();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //编辑
|
|
async edit() {
|
|
async edit() {
|
|
const modal = await this.modalCtrl.create({
|
|
const modal = await this.modalCtrl.create({
|
|
component: ModalUserEditComponent,
|
|
component: ModalUserEditComponent,
|
|
@@ -58,6 +59,7 @@ export class PageMineComponent implements OnInit {
|
|
const { data, role } = await modal.onWillDismiss();
|
|
const { data, role } = await modal.onWillDismiss();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //登录
|
|
async login() {
|
|
async login() {
|
|
if (!this.username || !this.password) {
|
|
if (!this.username || !this.password) {
|
|
const alert = await this.alertCtrl.create({
|
|
const alert = await this.alertCtrl.create({
|
|
@@ -111,7 +113,8 @@ export class PageMineComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- logout() {
|
|
|
|
|
|
+//登出
|
|
|
|
+logout() {
|
|
this.currentUser?.logout();
|
|
this.currentUser?.logout();
|
|
this.currentUser = undefined;
|
|
this.currentUser = undefined;
|
|
this.username = '';
|
|
this.username = '';
|