diff --git a/src/views/ErrorNote.vue b/src/views/ErrorNote.vue index da0397a..ca09ca6 100644 --- a/src/views/ErrorNote.vue +++ b/src/views/ErrorNote.vue @@ -11,20 +11,17 @@ .ivu-layout-header { line-height: normal; height: auto; - padding: 0px; + padding: 0; } - .content { background: #dddddd; } .ivu-layout-content { - padding: 0px; + padding: 0; } - - .layout-footer-center { background: #dddddd; text-align: center; @@ -130,7 +127,7 @@ export default { }, mounted() { this.$nextTick(() => { - window.scrollTo(0, 0); + //window.scrollTo(0, 0); }); //this.bindCopyTextEvent(); diff --git a/vue.config.js b/vue.config.js index 5d175ad..8be0c74 100644 --- a/vue.config.js +++ b/vue.config.js @@ -95,17 +95,25 @@ const config = { }, devServer: { proxy: { - "/note": { - target: "https://flagnote.com/", // 后台接口域名 - //target: "http://localhost:20000/", // 后台接口域名 + "/redirect": { + //target: "https://flagnote.com/", // 后台接口域名 + target: "http://localhost:21000/", // 后台接口域名 + secure: false, // 如果是https接口,需要配置这个参数 + changeOrigin: true, //是否跨域 + pathRewrite: { + '^/': '/html/' + }, + },"/note": { + //target: "https://flagnote.com/", // 后台接口域名 + target: "http://localhost:21000/", // 后台接口域名 secure: false, // 如果是https接口,需要配置这个参数 changeOrigin: true, //是否跨域 pathRewrite: { // '^/': '/' }, }, "^/[abcdefhikmnopqstuvwxyz23456789]{16}\\.txt$": { - target: "https://flagnote.com/", // 后台接口域名 - //target: "http://localhost:20000/", // 后台接口域名 + //target: "https://flagnote.com/", // 后台接口域名 + target: "http://localhost:21000/", // 后台接口域名 secure: false, // 如果是https接口,需要配置这个参数 changeOrigin: true, //是否跨域 pathRewrite: {