龚焕茏
2024-09-12 538208023472e702b7514faacdee7cbcc73b76c1
src/views/home/index.vue
@@ -1,6 +1,5 @@
<template>
  <div class="dashboard-container">
    <el-button @click="getUserDate">登录</el-button>
    <div>
      <div>
        <Chart :data="data1"></Chart>
@@ -44,15 +43,9 @@
      }
    }
  },
  mounted() {},
  mounted() {
  },
  methods: {
    getUserDate() {
      login({
        code: "041C8oFa14gC8I0FDRHa1cw5ae1C8oFj",
      }).then((res) => {
        localStorage.setItem("user", JSON.stringify(res));
      });
    },
  },
};
</script>