fix: send_balance not update when click sendmail (#155)

This commit is contained in:
Dream Hunter
2024-04-22 21:47:32 +08:00
committed by GitHub
parent 27138dc6a0
commit 1be94a81e0
2 changed files with 7 additions and 17 deletions

View File

@@ -4,16 +4,9 @@ on:
push:
paths:
- "frontend/**"
branches:
- main
tags:
- "*"
workflow_dispatch:
inputs:
production:
description: "Deploy to production"
type: boolean
default: false
jobs:
deploy:
@@ -42,15 +35,8 @@ jobs:
echo "${{ secrets.FRONTEND_ENV }}" > .env.prod
export project_name=${{ secrets.FRONTEND_NAME }}
pnpm install --no-frozen-lockfile
if [[ ${{ github.event.inputs.production }} == true ]]; then
pnpm run deploy --project-name=$project_name
echo "Deploying prodcution for ${{ github.ref_name }}"
elif [[ ${{ github.ref }} == refs/tags/* ]]; then
pnpm run deploy --project-name=$project_name
echo "Deploying prodcution for ${{ github.ref_name }}"
else
pnpm run deploy:preview --project-name=$project_name
fi
pnpm run deploy --project-name=$project_name
echo "Deploying prodcution for ${{ github.ref_name }}"
echo "Deployed for tag ${{ github.ref_name }}"
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

View File

@@ -1,6 +1,6 @@
<script setup>
import { useI18n } from 'vue-i18n'
import { ref } from 'vue'
import { onMounted, ref } from 'vue'
import { useStorage } from '@vueuse/core'
import { useGlobalState } from '../../store'
@@ -102,6 +102,10 @@ const requestAccess = async () => {
message.error(error.message || "error");
}
}
onMounted(async () => {
await api.getSettings();
})
</script>
<template>