Commit eae03e33 authored by lipengcheng 's avatar lipengcheng

一些优化

parent 3992be68
......@@ -10,8 +10,8 @@ module.exports = {
// 3: ESLint + Standard config
// extends: [ 'plugin:vue/essential', '@vue/airbnb',],
// ESLint + Prettier
extends: ['plugin:vue/recommended', 'eslint:recommended'],
// extends: ['plugin:vue/recommended', 'eslint:recommended', '@vue/prettier'],
// extends: ['plugin:vue/recommended', 'eslint:recommended'],
extends: ['plugin:vue/recommended', 'eslint:recommended', '@vue/prettier'],
plugins: [],
parserOptions: {
parser: 'babel-eslint'
......
module.exports = {
// 换行长度
printWidth: 150,
printWidth: 80,
// tab缩进大小,默认为2
tabWidth: 4,
// 使用tab缩进,默认false
......
......@@ -19,7 +19,9 @@ export default {
},
methods: {
async request() {
let result = await this.$http.get('/webapi/home/banner?type=1&category=18')
let result = await this.$http.get(
'/webapi/home/banner?type=1&category=18'
)
console.log('result:', result)
}
}
......
......@@ -5,10 +5,7 @@
当前的宝
</div>
<tip-panel></tip-panel>
<div
class="show-modal"
@click="showModal"
>
<div class="show-modal" @click="showModal">
show-modal
</div>
</div>
......
......@@ -3,8 +3,7 @@
<common-header></common-header>
<body class="body-container">
<side-nav></side-nav>
<router-view style="flex:1;border: 1px solid #666;">
</router-view>
<router-view style="flex:1;border: 1px solid #666;"> </router-view>
<right-panel></right-panel>
</body>
</div>
......
......@@ -5,7 +5,10 @@ import { register } from 'register-service-worker'
if (process.env.NODE_ENV === 'production') {
register(`${process.env.BASE_URL}service-worker.js`, {
ready() {
console.log('App is being served from cache by a service worker.\n' + 'For more details, visit https://goo.gl/AFskqB')
console.log(
'App is being served from cache by a service worker.\n' +
'For more details, visit https://goo.gl/AFskqB'
)
},
registered() {
console.log('Service worker has been registered.')
......@@ -20,7 +23,9 @@ if (process.env.NODE_ENV === 'production') {
console.log('New content is available; please refresh.')
},
offline() {
console.log('No internet connection found. App is running in offline mode.')
console.log(
'No internet connection found. App is running in offline mode.'
)
},
error(error) {
console.error('Error during service worker registration:', error)
......
......@@ -12,12 +12,14 @@ const routes = [
layout: 'DefaultLayout',
title: '首页'
},
component: () => import(/* webpackChunkName: "about" */ '../views/home.vue')
component: () =>
import(/* webpackChunkName: "about" */ '../views/home.vue')
},
{
path: '/page1',
name: 'Page1',
component: () => import(/* webpackChunkName: "about" */ '../views/page1.vue')
component: () =>
import(/* webpackChunkName: "about" */ '../views/page1.vue')
},
{
path: '/page2',
......@@ -29,7 +31,8 @@ const routes = [
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "about" */ '../views/page2.vue')
component: () =>
import(/* webpackChunkName: "about" */ '../views/page2.vue')
}
]
......
......@@ -15,11 +15,18 @@
aaa="dfasfsdffdsdfsdsdfffdsfdfdsf"
bb="dfasfsdffdsdfsdsdfffdsfdfdsf"
></videoPlayer>
<ffasfasdfsfa></ffasfasdfsfa>
</div>
</template>
<script>
export default {
components: {
ffasfasdfsfa: () =>
import(
'@.../dfsfsfsfds/fsdfdsfsdf/sdfsdfsdf/sdfsdfdsf/sdfsdfsdf/sdf.vue'
)
},
data() {
return {}
},
......
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