mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-08-06 10:57:26 +08:00
feat: 优化组件导入与样式调整
- 在多个组件中将 require 替换为 import,提升代码可读性和一致性。 - 在 App.vue 中添加分类树的 API 请求,优化分类数据的加载逻辑。 - 更新样式以适配 Element Plus 组件,确保界面一致性。 - 删除不再使用的样式文件,简化项目结构。
This commit is contained in:
@@ -20,8 +20,7 @@
|
||||
<script>
|
||||
import AMapLoader from "@amap/amap-jsapi-loader";
|
||||
import { getRegion } from "@/api/common.js";
|
||||
|
||||
const config = require("@/config/index");
|
||||
import config from "@/config/index";
|
||||
export default {
|
||||
name: "map",
|
||||
data() {
|
||||
|
||||
@@ -214,11 +214,8 @@ export default {
|
||||
default: () => []
|
||||
},
|
||||
size: {
|
||||
default() {
|
||||
return !this.$IVIEW || this.$IVIEW.size === ""
|
||||
? "default"
|
||||
: this.$IVIEW.size;
|
||||
}
|
||||
type: String,
|
||||
default: "default",
|
||||
},
|
||||
loading: {
|
||||
type: Boolean,
|
||||
|
||||
Reference in New Issue
Block a user