提交 cbfdc71f 编写于 作者: yma16's avatar yma16

feat:api跨域

上级 fa55f3e3
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>yma16前端日记</title>
<link rel="shortcut icon" href="./static/utils/fx_background/image/logo.ico">
<link
rel="shortcut icon"
href="./static/utils/fx_background/image/logo.ico"
/>
<!-- up -->
<script src="./static/utils/fx_background/js/jquery-2.1.4.min.js"></script>
<link rel="stylesheet" href="./static/utils/fx_background/css/core.css">
<link rel="stylesheet" href="./static/utils/fx_background/css/core.css" />
<!-- 我的阿里图标库 -->
<script src="http://at.alicdn.com/t/font_1957918_9kt1mmflyr8.js"></script>
<style>
body{
background:url(./static/utils/fx_background/image/background.png);
<style>
body {
background: url(./static/utils/fx_background/image/background.png);
background-size: cover;
background-repeat: no-repeat;
overflow: hidden;
}
</style>
</head>
<!-- 阿里 -->
<style type="text/css">
}
</style>
</head>
<!-- 阿里 -->
<style type="text/css">
.icon {
width: 1em;
height: 1em;
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
width: 1em;
height: 1em;
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}
</style>
</style>
<body>
<body>
<div id="canvas">
<div id='life'> </div>
<div id='is'> </div>
<div id='beautiful'>
</div>
<div id="life"></div>
<div id="is"></div>
<div id="beautiful"></div>
</div>
<div id="app"> </div>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
\ No newline at end of file
<script src="https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.min.js"></script>
<script>
L2Dwidget.init({
model: {
jsonPath:
"https://unpkg.com/live2d-widget-model-haruto@1.0.5/assets/haruto.model.json",
scale: 1,
hHeadPos: 0.5,
vHeadPos: 0.618,
},
display: {
position: "left",
width: 50,
height: 60,
hOffset: 0,
vOffset: 0,
},
mobile: {
show: true,
scale: 0.5,
},
react: {
opacityDefault: 0.9,
opacityOnHover: 0.5,
},
});
</script>
</body>
</html>
......@@ -98,11 +98,29 @@
</el-main>
<el-footer>
<div class="footer_font">
<div style="float: left"></div>
Copyright &copy;2022 yongma16.xyz&nbsp;&nbsp;&nbsp;浏览量:{{
readCount
}}
<div class="design-footer">
<div class="footer_font">
<div style="float: left"></div>
<span>
Copyright &copy;2022 yongma16.xyz
个人空间&nbsp;&nbsp;&nbsp;</span
>
<span> 足迹:{{ readCount }}&nbsp;&nbsp;&nbsp;</span>
<span
><img
src="@/assets/img/badge.png"
style="
cursor: pointer;
height: 16px;
margin-bottom: 0;
padding-bottom: 0;
"
/>&nbsp;&nbsp;<span style="cursor: pointer" @click="jumpIpDns"
>黔ICP备20001426号-1</span
></span
>
</div>
<!-- <div></div>-->
</div>
</el-footer>
</el-container>
......@@ -117,12 +135,12 @@ export default {
name: "App",
data() {
return {
authSlogan: "Yma16",
authSlogan: "yma16",
chat_flag: false,
msg: "yma16",
navigate_flag: true,
value: new Date(),
baseurl: "http://114.116.52.53/",
baseurl: "/api/",
// baseurl: 'http://yongma16.xyz/',
src: "https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg",
url: "/image/logo/logo.jpg",
......@@ -139,6 +157,14 @@ export default {
this.readCountFun();
},
methods: {
jumpIpDns: function () {
try {
window.open("https://beian.miit.gov.cn");
} catch (r) {
window.location.href = "https://beian.miit.gov.cn";
throw Error(r);
}
},
addReadCountFun: function () {
console.log("addfun");
let clientip = "未知";
......@@ -284,12 +310,14 @@ body {
/* background: url(/image/snow/gg.jpg) center top no-repeat; */
}
.design-footer {
position: relative;
margin-top: 20px;
}
.footer_font {
position: relative;
top: 25%;
/* height: 100%; */
margin: 0;
padding: 0;
}
.el-footer {
......
......@@ -45,7 +45,7 @@ export default {
return {
noneMsg: "还没人评论>_<",
msg: "评论区",
baseurl: "api",
baseurl: "/api/",
// baseurl: "http://yongma16.xyz/comment/",
userImg: "",
username: "匿名",
......
......@@ -24,7 +24,6 @@ export default {
return {
baseurl: "/api/",
basePath: "admin/",
// baseurl: 'http://yongma16.xyz/',
md_data: [],
};
},
......
......@@ -141,9 +141,9 @@ export default {
room_name: ["DjangoVue"],
room_select: "",
// baseUrl: "http://localhost:8006/webchat/index/",
baseurl: "/api/",
baseurl: "/ws_api/",
// baseUrl: "http://yongma16.xyz/",
websocketUrl: "/ws_api/",
websocketUrl: "/api/",
// websocketUrl: "yongma16.xyz/ws/webchat/",
websocket: null,
// room 存房间名字,content保存聊天信息的数组
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册