support user sign up

This commit is contained in:
MaysWind
2020-10-25 22:03:18 +08:00
parent 9c0af9a1bd
commit 56d7834f54
6 changed files with 167 additions and 0 deletions
+6
View File
@@ -78,6 +78,12 @@ Vue.prototype.$confirm = function (message, confirmCallback, cancelCallback) {
]
}).open();
};
Vue.prototype.$toast = function (message, timeout) {
this.$f7.toast.create({
text: i18n.t(message),
closeTimeout: timeout || 1500
}).open();
};
Vue.prototype.$services = services;
Vue.prototype.$user = userstate;