
@@ -28,7 +28,7 @@
diff --git a/mobile/src/router/index.js b/mobile/src/router/index.js
index 0037855..45a8a46 100644
--- a/mobile/src/router/index.js
+++ b/mobile/src/router/index.js
@@ -9,7 +9,7 @@ const routes = [
component: Home,
meta: {
showInMenu: true,
- }
+ },
},
{
path: "/about",
@@ -17,7 +17,7 @@ const routes = [
component: About,
meta: {
showInMenu: true,
- }
+ },
},
{
path: "/gellery",
@@ -26,7 +26,7 @@ const routes = [
import(/* webpackChunkName "gellery" */ "././../views/GalleryView.vue"),
meta: {
showInMenu: true,
- }
+ },
},
{
path: "/marketpalce",
@@ -37,7 +37,7 @@ const routes = [
),
meta: {
showInMenu: true,
- }
+ },
},
{
path: "/contact",
@@ -46,13 +46,25 @@ const routes = [
import(/* webpackChunkName "contact" */ "././../views/ContactUsView.vue"),
meta: {
showInMenu: true,
- }
+ },
},
];
const router = createRouter({
history: createWebHistory(),
- routes,
+ routes
+});
+router.afterEach((to, from) => {
+ let bodySrcollTop = document.body.scrollTop;
+ if (bodySrcollTop !== 0) {
+ document.body.scrollTop = 0;
+ return;
+ }
+ let docSrcollTop = document.documentElement.scrollTop;
+ if (docSrcollTop !== 0) {
+ document.documentElement.scrollTop = 0;
+ }
});
+
export default router;
diff --git a/mobile/src/store/user.js b/mobile/src/store/user.js
index a32cd98..0494513 100644
--- a/mobile/src/store/user.js
+++ b/mobile/src/store/user.js
@@ -19,7 +19,12 @@ export const useUserStore = defineStore('user', () => {
];
const token = ref(getToken());
-
+ // const accountId = ref(getAccountId());
+ // AppModule.updateAccount(accountId.value);
+ if(token.value){
+
+ AppModule.updateStep(1);
+ }
async function Login({bcInstance, account, chainId, nonce}) {
nonce += ''
const tips = 'This signature is only used for verify your account'
diff --git a/mobile/yarn.lock b/mobile/yarn.lock
index 09ac427..7adb8bd 100644
--- a/mobile/yarn.lock
+++ b/mobile/yarn.lock
@@ -2015,7 +2015,7 @@ debug@^3.1.0, debug@^3.2.7:
dependencies:
ms "^2.1.1"
-debug@^4.1.0, debug@^4.1.1, debug@^4.3.3:
+debug@^4.1.0, debug@^4.1.1, debug@^4.3.3, debug@^4.3.4:
version "4.3.4"
resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz"
integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
@@ -3636,6 +3636,11 @@ levelup@^1.2.1:
semver "~5.4.1"
xtend "~4.0.0"
+load-script@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmmirror.com/load-script/-/load-script-1.0.0.tgz#0491939e0bee5643ee494a7e3da3d2bac70c6ca4"
+ integrity sha512-kPEjMFtZvwL9TaZo0uZ2ml+Ye9HUMmPwbYRJ324qF9tqMejwykJ5ggTyvzmrbBeapCAbk98BSbTeovHEEP1uCA==
+
locate-path@^3.0.0:
version "3.0.0"
resolved "https://registry.npmmirror.com/locate-path/-/locate-path-3.0.0.tgz"
@@ -4932,6 +4937,11 @@ simple-get@^2.7.0:
once "^1.3.1"
simple-concat "^1.0.0"
+sister@^3.0.0:
+ version "3.0.2"
+ resolved "https://registry.npmmirror.com/sister/-/sister-3.0.2.tgz#bb3e39f07b1f75bbe1945f29a27ff1e5a2f26be4"
+ integrity sha512-p19rtTs+NksBRKW9qn0UhZ8/TUI9BPw9lmtHny+Y3TinWlOa9jWh9xB0AtPSdmOy49NJJJSSe0Ey4C7h0TrcYA==
+
snapdragon-node@^2.0.1:
version "2.1.1"
resolved "https://registry.npmmirror.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz"
@@ -6036,3 +6046,12 @@ yauzl@^2.10.0:
dependencies:
buffer-crc32 "~0.2.3"
fd-slicer "~1.1.0"
+
+youtube-player@^5.6.0:
+ version "5.6.0"
+ resolved "https://registry.npmmirror.com/youtube-player/-/youtube-player-5.6.0.tgz#71699ca093d8ae65e87091898cf812b354e261ea"
+ integrity sha512-x95fBbxV7eZ1ZsFtMLMcSGX0Jb/GPPj69RsooyEDVa9bzvvNZ4d5VjnBVBYoY85008VefkLvtaV+b+l38R/LMQ==
+ dependencies:
+ debug "^4.3.4"
+ load-script "^1.0.0"
+ sister "^3.0.0"