mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-07 05:32:45 +08:00
fix: send_balance not update when click sendmail (#155)
This commit is contained in:
18
.github/workflows/frontend_deploy.yaml
vendored
18
.github/workflows/frontend_deploy.yaml
vendored
@@ -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 }}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user