- 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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user