chore: update default account and add example data
CRM CI / build (push) Has been cancelled

- Update default login email to xinmi@local.com
- Update default password to 12345678 (and bcrypt hash in crm.sql)
- Add example customers, products, and contracts to init SQL
- Fix Docker env interpolation for VITE_API_BASE_URL
- Hardcode local backend API URL in frontend .env files
- Update README and docs to reflect new default credentials
This commit is contained in:
yi
2026-06-09 19:14:10 +08:00
parent a205a7a49d
commit c8e607c91c
23 changed files with 60 additions and 89 deletions
+3 -3
View File
@@ -44,7 +44,7 @@ import { initDatabase } from '../api/common';
// 初始化数据库(只会在生产环境中初始化)
onMounted(() => {
if (formData.email == '1655064994@qq.com') {
if (formData.email == 'xinmi@local.com') {
message.loading('正在初始化数据...', 2.5).then(() => {
initDatabase().then((res) => {
if (res.data.code == 0) {
@@ -61,8 +61,8 @@ onMounted(() => {
const router = useRouter()
const formData = reactive({
email: '1655064994@qq.com',
password: '1655064994',
email: 'xinmi@local.com',
password: '12345678',
remember: true,
})