feat(config): 支持配置 API 基础路径和开发环境标识
- 在配置存储中新增 dev 和 apiBaseUrl 字段 - 设置默认配置对象,包含基础 URL 构造逻辑 - 更新请求工具以使用动态配置的 baseURL - 调整应用初始化顺序确保配置先行加载 - 移除指令中不必要的调试日志输出
This commit is contained in:
@@ -35,7 +35,6 @@ function checkAndRemoveElement(el: HTMLElement, binding: DirectiveBinding) {
|
||||
const shouldEnable = binding.value !== false
|
||||
// 如果不是开发模式或者明确禁用,移除该元素
|
||||
if (!isDev && shouldEnable) {
|
||||
console.log(1111)
|
||||
if (el.parentNode) {
|
||||
el.parentNode.removeChild(el)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user