Commit bf8dc9a8 authored by 吕超's avatar 吕超

fix: 修改css引入方式

parent 87f66fcb
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
"ant-design-vue": "^1.7.6", "ant-design-vue": "^1.7.6",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.15.3", "element-ui": "^2.15.3",
"less-loader": "7",
"mapbox-gl": "1.13.1", "mapbox-gl": "1.13.1",
"vue": "^2.6.11", "vue": "^2.6.11",
"vue-router": "^3.2.0", "vue-router": "^3.2.0",
...@@ -28,7 +29,6 @@ ...@@ -28,7 +29,6 @@
"eslint-plugin-prettier": "^3.3.1", "eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^6.2.2", "eslint-plugin-vue": "^6.2.2",
"less": "^3.0.4", "less": "^3.0.4",
"less-loader": "^5.0.0",
"prettier": "^2.2.1", "prettier": "^2.2.1",
"vue-template-compiler": "^2.6.11" "vue-template-compiler": "^2.6.11"
}, },
......
<template> <template>
<div id="app"> <div id="app">
<keep-alive> <keep-alive>
<router-view /> <router-view />
</keep-alive> </keep-alive>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {};
};
}, },
}; };
</script> </script>
<style lang="less"> <style lang="less">
@import url("./assets/css/cssreset.css");
@import url("./assets/css/public.less");
html, html,
body { body {
margin: 0; margin: 0;
...@@ -29,7 +25,6 @@ body { ...@@ -29,7 +25,6 @@ body {
font-family: Avenir, Helvetica, Arial, sans-serif; font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50; color: #2c3e50;
background: url("./assets/img/bg.png") no-repeat; background: url("./assets/img/bg.png") no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
......
@import url("../fonts/font.css"); @import url(./cssreset.css);
@font-color: #fff; @font-color: #fff;
@linear-color: linear-gradient(to right, @linear-color: linear-gradient(to right,
rgba(0, 100, 200, 0.4), rgba(0, 100, 200, 0.4),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment