vue开发依赖的相关配置
Vue SSR 指南
今天先做客户端方面的配置,明天再做服务端的部分。
那么马上开始吧~
修改部分代码
脚手架生成的代码肯定是不适合我们所用的 所以要修改一部分代码
//App.vue
<template><div id="app"><router-view></router-view></div>
</template><script>
export default {name: 'app'
}
</script><style>html,body,#app,#app>*{width: 100%;height: 100%;}body{font-family: 'Avenir', Helvetica, Arial, sans-serif;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;text-align: center;color: #2c3e50;font-size: 16px;margin: 0;overflow-x: hidden;}img{width: 200px;}
</style>
修改main.js
本文发布于:2024-02-01 03:04:43,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170672788433416.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |