From c559f3213d7ee5fb298e83c053f494001f57e830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Fri, 18 Jan 2019 01:21:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A6=96=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E7=9A=84=E9=85=8D=E7=BD=AE=E5=8F=8A=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/app.js | 6 ++++++ js/modules/profile.js | 2 ++ 2 files changed, 8 insertions(+) diff --git a/js/app.js b/js/app.js index 5f39635..0c12e24 100644 --- a/js/app.js +++ b/js/app.js @@ -259,6 +259,12 @@ Anot({ this.optBoxShow = false this.mod = mod }, + // 设置保存 回调 + onProfileSaved() { + this.toggleModule('local') + appInit = Anot.ss('app-init') + }, + togglePlayMode() { let mod = this.playMode mod++ diff --git a/js/modules/profile.js b/js/modules/profile.js index bac14e9..44e9815 100644 --- a/js/modules/profile.js +++ b/js/modules/profile.js @@ -63,6 +63,8 @@ export default Anot({ Anot.ss('app-init', cache) layer.toast('保存成功') + + this.__APP__.onProfileSaved() } } })