diff --git a/src/views/ErrorNote.vue b/src/views/ErrorNote.vue index f1434de..94fff95 100644 --- a/src/views/ErrorNote.vue +++ b/src/views/ErrorNote.vue @@ -42,16 +42,11 @@ @@ -156,7 +140,7 @@ export default { entries.forEach(entry => { let affix = document.querySelector('.ivu-affix'); if (affix) { - affix.setAttribute("style", "top: 0px; width: " + entry.contentRect.width + "px;"); + affix.setAttribute("style", "top: 0px; width: " + (entry.contentRect.width +2) + "px;"); } }); diff --git a/src/views/ViewNote.vue b/src/views/ViewNote.vue index 9a93cc0..42974ec 100644 --- a/src/views/ViewNote.vue +++ b/src/views/ViewNote.vue @@ -448,7 +448,7 @@ export default { entries.forEach(entry => { let affix = document.querySelector('.ivu-affix'); if (affix) { - affix.setAttribute("style", "top: 0px; width: " + entry.contentRect.width + "px;"); + affix.setAttribute("style", "top: 0px; width: " + (entry.contentRect.width + 2) + "px;"); } }); diff --git a/vue.config.js b/vue.config.js index 05863d1..d0d1f72 100644 --- a/vue.config.js +++ b/vue.config.js @@ -63,7 +63,7 @@ module.exports = defineConfig({ devServer: { proxy: { "/note": { - target: "http://localhost:55555/", // 后台接口域名 + target: "http://127.0.0.1:10000/", // 后台接口域名 secure: false, // 如果是https接口,需要配置这个参数 changeOrigin: true, //是否跨域 pathRewrite: {