提交
This commit is contained in:
parent
83c876b88c
commit
30bc01d15e
@ -5,7 +5,7 @@ VITE_APP_TITLE = 伊特机械MES
|
|||||||
VITE_APP_ENV = 'development'
|
VITE_APP_ENV = 'development'
|
||||||
|
|
||||||
# 开发环境
|
# 开发环境
|
||||||
VITE_APP_BASE_API = 'http://192.168.12.230:8888/api'
|
VITE_APP_BASE_API = 'http://192.168.12.4:8888/api'
|
||||||
#VITE_APP_BASE_API = 'http://192.168.5.14:9100/gateway'
|
#VITE_APP_BASE_API = 'http://192.168.5.14:9100/gateway'
|
||||||
#VITE_APP_BASE_API = '/dev-api'
|
#VITE_APP_BASE_API = '/dev-api'
|
||||||
|
|
||||||
|
|||||||
2211
pnpm-lock.yaml
2211
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -30,11 +30,13 @@ export interface UserInfo {
|
|||||||
id: number
|
id: number
|
||||||
username: string
|
username: string
|
||||||
nickname: string
|
nickname: string
|
||||||
|
postNames:string
|
||||||
avatar: string
|
avatar: string
|
||||||
email: string
|
email: string
|
||||||
phone: string
|
phone: string
|
||||||
gender: number
|
gender: number
|
||||||
status: number
|
status: number
|
||||||
|
//userId:number|string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MenuInfo {
|
export interface MenuInfo {
|
||||||
|
|||||||
@ -18,6 +18,10 @@ export const useUserStore = defineStore('user', () => {
|
|||||||
const nickname = computed(() => user.value?.nickname || user.value?.username || '')
|
const nickname = computed(() => user.value?.nickname || user.value?.username || '')
|
||||||
const avatar = computed(() => user.value?.avatar || '')
|
const avatar = computed(() => user.value?.avatar || '')
|
||||||
|
|
||||||
|
const postNames = computed(() => user.value?.postNames || '')
|
||||||
|
|
||||||
|
const userid = computed(() => user.value?.id || '')
|
||||||
|
|
||||||
function setinit(v:any) {
|
function setinit(v:any) {
|
||||||
init.value = v
|
init.value = v
|
||||||
}
|
}
|
||||||
@ -92,6 +96,8 @@ export const useUserStore = defineStore('user', () => {
|
|||||||
nickname,
|
nickname,
|
||||||
avatar,
|
avatar,
|
||||||
init,
|
init,
|
||||||
|
postNames,
|
||||||
|
userid,
|
||||||
setinit,
|
setinit,
|
||||||
login,
|
login,
|
||||||
getInfo,
|
getInfo,
|
||||||
|
|||||||
@ -116,8 +116,8 @@ async function decryptResponseData(data: string): Promise<any> {
|
|||||||
// 创建axios实例
|
// 创建axios实例
|
||||||
// 后端 API 统一使用 /api 前缀
|
// 后端 API 统一使用 /api 前缀
|
||||||
const service: AxiosInstance = axios.create({
|
const service: AxiosInstance = axios.create({
|
||||||
// baseURL:'/api',
|
baseURL:'/api',
|
||||||
baseURL: BASE_API,
|
//baseURL: BASE_API,
|
||||||
timeout: 30000
|
timeout: 30000
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,8 @@ export default defineConfig({
|
|||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
//target:'http://192.168.6.107:8080', //'http://192.168.5.230:8888',
|
//target:'http://192.168.6.107:8080', //'http://192.168.5.230:8888',
|
||||||
target:'http://192.168.5.230:8888',
|
//target:'http://192.168.12.4:8888',
|
||||||
|
target:'http://192.168.12.230:8888',
|
||||||
//target:'http://192.168.5.200:8888',
|
//target:'http://192.168.5.200:8888',
|
||||||
changeOrigin: true
|
changeOrigin: true
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user