|
@@ -40,13 +40,16 @@
|
|
</template>
|
|
</template>
|
|
<script setup>
|
|
<script setup>
|
|
import { useSystemStore } from "@/stores/modules/systemStore"
|
|
import { useSystemStore } from "@/stores/modules/systemStore"
|
|
-const router = useRouter()
|
|
|
|
|
|
+import { useRoute } from 'vue-router'
|
|
|
|
+const router = useRouter();
|
|
|
|
+const route = useRoute();
|
|
const systemStore = useSystemStore();
|
|
const systemStore = useSystemStore();
|
|
|
|
+const obj = route.query
|
|
|
|
|
|
const checked = ref(false)
|
|
const checked = ref(false)
|
|
const showBottom = ref(false);
|
|
const showBottom = ref(false);
|
|
const isCreate = ref(true); //true:创建钱包 false:导入钱包
|
|
const isCreate = ref(true); //true:创建钱包 false:导入钱包
|
|
-const isFirst = ref(true); //true:首次 false:不是首次
|
|
|
|
|
|
+const isFirst = Object.keys(obj).length === 0 ? true : false; //true:首次 false:不是首次
|
|
// 创建
|
|
// 创建
|
|
const changeCreate = () => {
|
|
const changeCreate = () => {
|
|
isCreate.value = true;
|
|
isCreate.value = true;
|
|
@@ -76,7 +79,7 @@ const goTo = () => {
|
|
localStorage: true,
|
|
localStorage: true,
|
|
});
|
|
});
|
|
// 如果是第一次登录,需要选择网络
|
|
// 如果是第一次登录,需要选择网络
|
|
- if(isFirst.value){
|
|
|
|
|
|
+ if(isFirst){
|
|
router.push({
|
|
router.push({
|
|
path: '/selectNetwork'
|
|
path: '/selectNetwork'
|
|
})
|
|
})
|