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
+5 -2
View File
@@ -1,15 +1,18 @@
import axios from 'axios';
import { message } from 'ant-design-vue';
axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL
console.log('DEBUG: import.meta.env.VITE_API_BASE_URL =', import.meta.env.VITE_API_BASE_URL);
const request = axios.create({
// timeout: 5000,`
baseURL: import.meta.env.VITE_API_BASE_URL || '/api',
// timeout: 5000,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
console.log('DEBUG: axios baseURL =', request.defaults.baseURL);
request.interceptors.request.use(config => {
config.headers['uid'] = localStorage.getItem('uid')
config.headers['token'] = localStorage.getItem('token')