<template>
  <uni-card title="首页"> </uni-card>
  <button @click="getDataList()">获取数据</button>
</template>

<script>
export default {
  onLoad() {
    console.log("主页");
  },
  methods: {
    getDataList() {
      const token = uni.getStorageSync("token");
      console.log("token:", token);
    },
  },
};
</script>

<style></style>
