fix: 用户登录接口在开发环境 404 错误

修复 user.js 中未使用 API_PREFIX 导致的路径问题。
  现在开发环境正确使用 /webapi 前缀进行代理转发。
This commit is contained in:
sususu98
2025-10-03 22:34:31 +08:00
parent 7183903147
commit 57e75cd526

View File

@@ -1,8 +1,9 @@
import { defineStore } from 'pinia'
import axios from 'axios'
import { showToast } from '@/utils/toast'
import { API_PREFIX } from '@/config/api'
const API_BASE = '/users'
const API_BASE = `${API_PREFIX}/users`
export const useUserStore = defineStore('user', {
state: () => ({