Compare commits

..

No commits in common. "b603b06f05b5b6be5d49bc107c409527a4a7b75d" and "27d8cbadba76e5c5ebfd0c1d1c53c1fd03de867c" have entirely different histories.

1 changed files with 1 additions and 4 deletions

View File

@ -3,11 +3,11 @@
<el-card style="margin-top: 50px;">
<h1>用户余额</h1>
<p>余额{{ userBalanceData.userBalance || '加载中...' }}</p>
<el-button type="primary" @click="navigateToRecharge"></el-button>
</el-card>
</div>
</template>
<script>
import { userBalance } from "@/api/system/user"; // userBalance@/api/money
@ -23,9 +23,6 @@ export default {
this.fetchUserBalance();
},
methods: {
navigateToRecharge() {
this.$router.push('/money/zfb');
},
async fetchUserBalance() {
try {
const userId = localStorage.getItem('userId');