diff --git a/examples/sites/src/views/components/components.vue b/examples/sites/src/views/components/components.vue index 1595ad6583..0752c55dc5 100644 --- a/examples/sites/src/views/components/components.vue +++ b/examples/sites/src/views/components/components.vue @@ -81,12 +81,11 @@ > - + @@ -370,7 +369,10 @@ export default defineComponent({ }, // 点击api 区域的type列 handleTypeClick: (ev) => { - changeActiveNames(ev.target.hash, true) + const hash = ev.target.hash + if (hash) { + changeActiveNames(hash, true) + } }, // 目录列表上的点击 handleAnchorClick: (e, data) => { diff --git a/packages/theme/package.json b/packages/theme/package.json index 4acbf4c939..3f5cf07255 100644 --- a/packages/theme/package.json +++ b/packages/theme/package.json @@ -28,7 +28,7 @@ "./*": "./src/*" }, "scripts": { - "clean": "rimraf dist", + "clean": "rimraf dist src/aurora-theme src/smb-theme", "build:theme": "gulp build --gulpfile build/gulp-dist.js", "build": "npm run clean && npm run build:theme && node build/replace-img.js", "build:fast": "npm run build && npm run release",