feat: email register and login

This commit is contained in:
tim
2025-07-05 02:06:46 +08:00
parent d540c995a9
commit 3568e54984
4 changed files with 71 additions and 21 deletions

View File

@@ -4,13 +4,13 @@ import router from './router'
import './assets/global.css'
import Toast, { POSITION } from 'vue-toastification'
import 'vue-toastification/dist/index.css'
import { useToast } from 'vue-toastification'
// Configurable API domain and port
export const API_DOMAIN =
process.env.VUE_APP_API_DOMAIN ||
`${window.location.protocol}//${window.location.hostname}`
export const API_PORT = process.env.VUE_APP_API_PORT || window.location.port
export const API_DOMAIN = 'http://127.0.0.1'
export const API_PORT = 8081
export const API_BASE_URL = API_PORT ? `${API_DOMAIN}:${API_PORT}` : API_DOMAIN
export const toast = useToast()
const app = createApp(App)
app.use(router)