更新文件结构,统一文档格式
This commit is contained in:
@@ -3,7 +3,7 @@ import { message } from 'ant-design-vue'
|
||||
import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'
|
||||
|
||||
// API基础配置
|
||||
const baseURL = import.meta.env.VITE_API_BASE_URL || 'http://localhost:3100/api'
|
||||
const baseURL = import.meta.env.VITE_API_BASE_URL || 'https://api.jiebanke.com/api'
|
||||
const timeout = parseInt(import.meta.env.VITE_API_TIMEOUT || '10000')
|
||||
|
||||
// 创建axios实例
|
||||
|
||||
@@ -39,7 +39,7 @@ export const useMerchantStore = defineStore('merchant', () => {
|
||||
businessLicense: '1234567890',
|
||||
contactPerson: '张老板',
|
||||
contactPhone: '13800138001',
|
||||
contactEmail: 'flower@example.com',
|
||||
contactEmail: 'flower@jiebanke.com',
|
||||
address: '北京市朝阳区',
|
||||
description: '专业鲜花销售',
|
||||
status: 'active',
|
||||
@@ -58,7 +58,7 @@ export const useMerchantStore = defineStore('merchant', () => {
|
||||
businessLicense: '0987654321',
|
||||
contactPerson: '李农场主',
|
||||
contactPhone: '13900139001',
|
||||
contactEmail: 'farm@example.com',
|
||||
contactEmail: 'farm@jiebanke.com',
|
||||
address: '上海市浦东新区',
|
||||
description: '动物认领和农场体验',
|
||||
status: 'active',
|
||||
@@ -107,7 +107,7 @@ export const useMerchantStore = defineStore('merchant', () => {
|
||||
businessLicense: `LICENSE${merchantId}`,
|
||||
contactPerson: '联系人',
|
||||
contactPhone: '13800138000',
|
||||
contactEmail: `merchant${merchantId}@example.com`,
|
||||
contactEmail: `merchant${merchantId}@jiebanke.com`,
|
||||
address: '地址',
|
||||
description: '商家描述',
|
||||
status: 'active',
|
||||
|
||||
@@ -31,7 +31,7 @@ export const useUserStore = defineStore('user', () => {
|
||||
nickname: '用户1',
|
||||
avatar: '',
|
||||
phone: '13800138000',
|
||||
email: 'user1@example.com',
|
||||
email: 'user1@jiebanke.com',
|
||||
status: 'active',
|
||||
registerTime: '2024-01-01 10:00:00',
|
||||
lastLoginTime: '2024-01-15 15:30:00',
|
||||
@@ -43,7 +43,7 @@ export const useUserStore = defineStore('user', () => {
|
||||
nickname: '商家1',
|
||||
avatar: '',
|
||||
phone: '13900139000',
|
||||
email: 'merchant1@example.com',
|
||||
email: 'merchant1@jiebanke.com',
|
||||
status: 'active',
|
||||
registerTime: '2024-01-02 09:00:00',
|
||||
lastLoginTime: '2024-01-14 14:20:00',
|
||||
@@ -76,7 +76,7 @@ export const useUserStore = defineStore('user', () => {
|
||||
nickname: `用户${userId}`,
|
||||
avatar: '',
|
||||
phone: '13800138000',
|
||||
email: `user${userId}@example.com`,
|
||||
email: `user${userId}@jiebanke.com`,
|
||||
status: 'active',
|
||||
registerTime: '2024-01-01 10:00:00',
|
||||
lastLoginTime: '2024-01-15 15:30:00',
|
||||
|
||||
Reference in New Issue
Block a user