This commit is contained in:
Jesse-Ma
2022-12-23 17:38:33 +08:00
parent 5a9fe66cad
commit 616e9499d7
3 changed files with 3 additions and 19 deletions

View File

@@ -42,16 +42,11 @@
<template>
<div class="layout" onkeydown="keydown">
<Layout>
<Header class="header">
<div>
<Row>
<Col :xs="{ span: 24, offset: 0 }" :sm="{ span: 22, offset: 1 }" :md="{ span: 20, offset: 2 }"
:lg="{ span: 18, offset: 3 }" :xl="{ span: 16, offset: 4 }" :xxl="{ span: 16, offset: 4 }">
<Affix :offset-top="0">
<div style="background: white;width:100%;height:40px;">
<img style="height:40px;float:left;" src="/static/logo.png">
@@ -59,18 +54,9 @@
<Button-group size="large">
<Button type="error" style="margin-left:0px; border-radius: 0px;font-size: 24px;"
@click="createNote()" icon="md-add"></Button>
</Button-group>
</div>
</div>
</Affix>
</Col>
</Row>
</div>
@@ -98,8 +84,6 @@
<Footer class="layout-footer-center">2022 &copy; flagnote.com</Footer>
</Layout>
</div>
</template>
@@ -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;");
}
});

View File

@@ -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;");
}
});

View File

@@ -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: {