From f8e9af35a267b7b9a2bf605187a11536889a6e38 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Mon, 20 May 2024 11:00:10 +0800
Subject: [PATCH] 修改:绑定银行卡 多语言

---
 src/App.vue |   25 ++++++-------------------
 1 files changed, 6 insertions(+), 19 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 3b9ab13..d67e27a 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -40,7 +40,8 @@
 // 引入css
 import "@/assets/iconfont/iconfont.css";
 import "@/assets/iconfont/iconfont.ttf";
-import { getUserInfodata } from "./axios/api";
+
+import { mapActions } from "vuex";
 
 export default {
   components: {
@@ -50,9 +51,8 @@
   },
   name: "App",
   created() {
-    this.getUserInfo();
+    this.setUseInfo();
     this.$state.theme = "red";
-    console.log(this.$state.theme, "asdasdasd");
     let title = this.$route.meta.title || this.$t("hj224");
     this.title = title;
     if (this.$route.meta.is_Show) {
@@ -99,7 +99,7 @@
   },
   data() {
     return {
-      title: "首页",
+      title: "Home",
       hasHeader: false,
       iconRight: "default",
       transitionName: "",
@@ -108,21 +108,8 @@
     };
   },
   methods: {
-    async getUserInfo() {
-      // 获取用户信息
-      //   let showcookie = this.getCookie('USER_TOKEN');
-      let data = await getUserInfodata();
-      if (data.status === 0) {
-        // this.getProductSetting()
-        this.$store.state.userInfo = data.data;
-      } else {
-        this.$store.commit("elAlertShow", {
-          elAlertShow: true,
-          elAlertText: data.msg,
-        });
-      }
-      this.$store.state.user = this.user;
-    },
+    ...mapActions(["setUseInfo"]),
+
     footColse() {
       this.$store.commit("dialogVisible", true);
     },

--
Gitblit v1.9.3