@jx3box/jx3box-editor 1.8.5 → 1.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Article.vue +7 -0
package/package.json
CHANGED
package/src/Article.vue
CHANGED
|
@@ -196,6 +196,13 @@ export default {
|
|
|
196
196
|
let dir = renderDirectory(target, this.directorybox);
|
|
197
197
|
this.$emit("directoryRendered", dir);
|
|
198
198
|
|
|
199
|
+
if(window.location.hash?.includes('directory')){
|
|
200
|
+
let id = window.location.hash
|
|
201
|
+
let target = $(`${id}`).offset().top;
|
|
202
|
+
console.log(target)
|
|
203
|
+
$(document).scrollTop(target - HEADER_HEIGHT);
|
|
204
|
+
}
|
|
205
|
+
|
|
199
206
|
$(".w-directory-anchor").on("click", function () {
|
|
200
207
|
e.preventDefault();
|
|
201
208
|
let id = $(this).attr("id");
|