fixed
This commit is contained in:
@@ -42,16 +42,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="layout" onkeydown="keydown">
|
<div class="layout" onkeydown="keydown">
|
||||||
<Layout>
|
<Layout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<Header class="header">
|
<Header class="header">
|
||||||
<div>
|
<div>
|
||||||
<Row>
|
<Row>
|
||||||
<Col :xs="{ span: 24, offset: 0 }" :sm="{ span: 22, offset: 1 }" :md="{ span: 20, offset: 2 }"
|
<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 }">
|
: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;">
|
<div style="background: white;width:100%;height:40px;">
|
||||||
<img style="height:40px;float:left;" src="/static/logo.png">
|
<img style="height:40px;float:left;" src="/static/logo.png">
|
||||||
|
|
||||||
@@ -59,18 +54,9 @@
|
|||||||
<Button-group size="large">
|
<Button-group size="large">
|
||||||
<Button type="error" style="margin-left:0px; border-radius: 0px;font-size: 24px;"
|
<Button type="error" style="margin-left:0px; border-radius: 0px;font-size: 24px;"
|
||||||
@click="createNote()" icon="md-add"></Button>
|
@click="createNote()" icon="md-add"></Button>
|
||||||
|
|
||||||
</Button-group>
|
</Button-group>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</Affix>
|
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</div>
|
</div>
|
||||||
@@ -98,8 +84,6 @@
|
|||||||
<Footer class="layout-footer-center">2022 © flagnote.com</Footer>
|
<Footer class="layout-footer-center">2022 © flagnote.com</Footer>
|
||||||
|
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -156,7 +140,7 @@ export default {
|
|||||||
entries.forEach(entry => {
|
entries.forEach(entry => {
|
||||||
let affix = document.querySelector('.ivu-affix');
|
let affix = document.querySelector('.ivu-affix');
|
||||||
if (affix) {
|
if (affix) {
|
||||||
affix.setAttribute("style", "top: 0px; width: " + entry.contentRect.width + "px;");
|
affix.setAttribute("style", "top: 0px; width: " + (entry.contentRect.width +2) + "px;");
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -448,7 +448,7 @@ export default {
|
|||||||
entries.forEach(entry => {
|
entries.forEach(entry => {
|
||||||
let affix = document.querySelector('.ivu-affix');
|
let affix = document.querySelector('.ivu-affix');
|
||||||
if (affix) {
|
if (affix) {
|
||||||
affix.setAttribute("style", "top: 0px; width: " + entry.contentRect.width + "px;");
|
affix.setAttribute("style", "top: 0px; width: " + (entry.contentRect.width + 2) + "px;");
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ module.exports = defineConfig({
|
|||||||
devServer: {
|
devServer: {
|
||||||
proxy: {
|
proxy: {
|
||||||
"/note": {
|
"/note": {
|
||||||
target: "http://localhost:55555/", // 后台接口域名
|
target: "http://127.0.0.1:10000/", // 后台接口域名
|
||||||
secure: false, // 如果是https接口,需要配置这个参数
|
secure: false, // 如果是https接口,需要配置这个参数
|
||||||
changeOrigin: true, //是否跨域
|
changeOrigin: true, //是否跨域
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
|
|||||||
Reference in New Issue
Block a user