11<template >
22 <div id =" app" >
3- <Navbar />
3+ <Navbar />
44 <div class =" app-container" >
55 <router-view ></router-view >
66 </div >
1010 <a v-on:click =" gotoprivacy" >隐私政策</a >
1111 <a v-on:click =" gotoabout" >关于</a >
1212 </div >
13- <div style =" text-align : center ; margin : 2px 0px 10px " >
14- <p >© ; <a href =" https://a2os.club" style =" color : #2c3e50 ;" >A²OS</a > 2018-2019 All rights reserved.</p >
13+ <div style =" text-align : center ; margin : 2px 0px 10px ;" >
14+ <p >
15+ © ;
16+ <a href =" https://a2os.club" style =" color : #2c3e50 ;" >A²OS</a > 2018-2020
17+ All rights reserved.
18+ </p >
1519 </div >
1620 </div >
1721 </div >
1822</template >
1923<script >
20- import Navbar from ' ./components/Navbar.vue'
21- import _global from ' ./Global.vue'
24+ import Navbar from " ./components/Navbar.vue" ;
25+ import _global from " ./Global.vue" ;
2226export default {
23- name: ' app' ,
27+ name: " app" ,
2428 components: {
2529 Navbar,
2630 },
27- created () {
28- },
31+ created () {},
2932 mounted () {
30- this .$axios .defaults .withCredentials = true
31- this .$axios .get (_global .api_domain_url + " csrf" )
32- . then ( function ( response ) {
33- var csrf_token = response . headers [ " x-csrf-token " ]
34- sessionStorage . setItem ( " csrf_token " , csrf_token)
35- })
36- this . $axios .get (_global .behavior_api_domain_url + " csrf" )
37- .then (function (response ) {
38- var csrf_token = response .headers [" x-csrf-token" ]
39- sessionStorage .setItem (" behavior_csrf_token" , csrf_token)
40- })
33+ this .$axios .defaults .withCredentials = true ;
34+ this .$axios .get (_global .api_domain_url + " csrf" ). then ( function ( response ) {
35+ var csrf_token = response . headers [ " x-csrf-token " ];
36+ sessionStorage . setItem ( " csrf_token " , csrf_token);
37+ });
38+ this . $axios
39+ .get (_global .behavior_api_domain_url + " csrf" )
40+ .then (function (response ) {
41+ var csrf_token = response .headers [" x-csrf-token" ];
42+ sessionStorage .setItem (" behavior_csrf_token" , csrf_token);
43+ });
4144 },
4245 methods: {
4346 gototerms () {
44- this .$router .push ({path: ' /terms' })
47+ this .$router .push ({ path: " /terms" });
4548 },
4649
4750 gotoprivacy () {
48- this .$router .push ({path: ' /privacy' })
51+ this .$router .push ({ path: " /privacy" });
4952 },
5053
5154 gotoabout () {
52- this .$router .push ({path: ' /about' })
55+ this .$router .push ({ path: " /about" });
5356 },
54- }
55- }
57+ },
58+ };
5659 </script >
5760<style >
5861body {
@@ -67,10 +70,11 @@ body {
6770 display : flex ;
6871 flex-direction : column ;
6972 margin-top : 0 ;
70- background : url (' ./assets/background.svg' ) no-repeat ;
73+ background : url (" ./assets/background.svg" ) no-repeat ;
7174 background-size : 100% ;
7275 width : 100% ;
73- font-family : -apple-system ,BlinkMacSystemFont,SF Pro Text ,segoe ui,helvetica neue,helvetica ,ubuntu,roboto,noto,arial ,sans-serif ;
76+ font-family : -apple-system , BlinkMacSystemFont, SF Pro Text , segoe ui,
77+ helvetica neue, helvetica , ubuntu, roboto, noto, arial , sans-serif ;
7478 -webkit-font-smoothing : antialiased ;
7579 -moz-osx-font-smoothing : grayscale ;
7680 color : #2c3e50 ;
8387 margin-top : 80px ;
8488 flex : 1 ;
8589}
86- .link-container a {
87- margin :0px 1% 0px ;
90+ .link-container a {
91+ margin : 0px 1% 0px ;
8892 color : rgb (109 , 109 , 109 );
8993 font-weight : bold ;
9094}
@@ -96,8 +100,8 @@ body {
96100}
97101@media (max-width : 700px ) {
98102 .link-container {
99- text-align :center ;
103+ text-align : center ;
100104 margin-bottom : 20px ;
101- }
105+ }
102106}
103107 </style >
0 commit comments