Commit 2b2bbe2a authored by bobo826's avatar bobo826

feat: 项目搭建第一次提交

parent 3b739d89
...@@ -32,6 +32,7 @@ module.exports = { ...@@ -32,6 +32,7 @@ module.exports = {
'eol-last': 0, 'eol-last': 0,
'object-curly-spacing': 0, 'object-curly-spacing': 0,
'padded-blocks': 0, 'padded-blocks': 0,
'no-trailing-spaces': 0 'no-trailing-spaces': 0,
'linebreak-style': [0, 'error', 'window']
}, },
}; };
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -56,4 +56,4 @@ ...@@ -56,4 +56,4 @@
}, },
"description": "教学管理项目", "description": "教学管理项目",
"author": "黄露" "author": "黄露"
} }
\ No newline at end of file
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<script> <script>
import { mapMutations } from 'vuex'; import { mapMutations } from 'vuex'
import { login, userinfo } from '@/api'; import { login, userinfo } from '@/api'
import {GkHeader} from '@/components' import {GkHeader} from '@/components'
export default { export default {
...@@ -24,18 +24,17 @@ export default { ...@@ -24,18 +24,17 @@ export default {
GkHeader GkHeader
}, },
mounted() { mounted() {
login('huanglu', '123').then((res) => { login('huanglu', '123').then((res) => {
console.log(res); console.log(res);
}); })
userinfo({ id: '2424' }).then((res) => { userinfo({ id: '2424' }).then((res) => {
console.log('userinfo ----> ', res); console.log('userinfo ----> ', res);
}); })
}, },
methods: { methods: {
...mapMutations(['changeName']), ...mapMutations(['changeName']),
}, }
}; }
</script> </script>
<style lang="scss"> <style lang="scss">
......
...@@ -16,10 +16,10 @@ export default { ...@@ -16,10 +16,10 @@ export default {
} }
</script> </script>
<style lang='scss' scoped> <style lang='scss' scoped>
.gk-header { .gk-header {
display: flex; display: flex;
flex-flow: row; flex-flow: row;
align-items: center; align-items: center;
background: #1438ED; background: #1438ED;
} }
</style> </style>
\ No newline at end of file
import HelloWorld from './hello-world'; import HelloWorld from './hello-world';
import GkHeader from './header'; import GkHeader from './Header';
export { HelloWorld, GkHeader }; export { HelloWorld, GkHeader };
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