Merge branch 'master' of http://82.157.76.162:3000/Big-Data-Lab/AI-VUE
This commit is contained in:
commit
1f778100f1
|
@ -0,0 +1,23 @@
|
|||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
node: true
|
||||
},
|
||||
'extends': [
|
||||
'plugin:vue/essential',
|
||||
'eslint:recommended'
|
||||
],
|
||||
parserOptions: {
|
||||
parser: '@babel/eslint-parser'
|
||||
},
|
||||
rules: {
|
||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||
'camelcase': 'off',
|
||||
'vue/attribute-hyphenation': 'off',
|
||||
//禁用命名规则
|
||||
'vue/name-property-casing': 'off',
|
||||
'vue/multi-word-component-names': 'off',
|
||||
'vue/no-deprecated-scope-attribute': 'off',
|
||||
}
|
||||
}
|
|
@ -1,9 +1,33 @@
|
|||
import Vue from 'vue';
|
||||
import Router from 'vue-router';
|
||||
import User from '@/views/User.vue';
|
||||
import App from '@/App.vue';
|
||||
|
||||
Vue.use(Router);
|
||||
|
||||
export default new Router({
|
||||
routes: [
|
||||
]
|
||||
});
|
||||
|
||||
const routes=[
|
||||
{
|
||||
path: '/',
|
||||
name: 'App',
|
||||
component: App,
|
||||
children: [
|
||||
{
|
||||
path: 'user',
|
||||
name: 'User',
|
||||
component: User
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
|
||||
]
|
||||
const router = new Router({
|
||||
mode: 'history',
|
||||
base: process.env.BASE_URL,
|
||||
routes
|
||||
})
|
||||
|
||||
|
||||
|
||||
export default router
|
|
@ -0,0 +1,15 @@
|
|||
<template>
|
||||
<div id="app1">
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
Loading…
Reference in New Issue