提交 1f4a57b3 作者: 潘亚楠

初始化

上级 ef7b8159
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
<!-- 引入vue --> <!-- 引入vue -->
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script> <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
<!-- 引入组件库 --> <!-- 引入组件库 -->
<script src="https://web.allhome.com.cn/index.js"></script> <!-- <script src="https://web.allhome.com.cn/index.js"></script> -->
<script src="http://192.168.10.200:7400/index.js"></script>
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
</body> </body>
......
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
"dependencies": { "dependencies": {
"axios": "^0.18.0", "axios": "^0.18.0",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vuex": "^3.1.0" "vuex": "^3.1.0",
"web_notebook-test1": "^1.2.3"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^7.1.2", "autoprefixer": "^7.1.2",
...@@ -37,6 +38,7 @@ ...@@ -37,6 +38,7 @@
"cross-env": "^5.0.1", "cross-env": "^5.0.1",
"cross-spawn": "^5.0.1", "cross-spawn": "^5.0.1",
"css-loader": "^0.28.0", "css-loader": "^0.28.0",
"debug": "^4.1.1",
"eslint": "^4.15.0", "eslint": "^4.15.0",
"eslint-config-standard": "^10.2.1", "eslint-config-standard": "^10.2.1",
"eslint-friendly-formatter": "^3.0.0", "eslint-friendly-formatter": "^3.0.0",
......
<template> <template>
<div id="app"> <div id="app">
<router-view/> <el-container>
<el-header>
<el-row>
<el-col :span="24">
<el-button @click="$router.back()">首页</el-button>
</el-col>
</el-row>
</el-header>
<el-main>
<el-row>
<el-col :span="24">
<router-view></router-view>
</el-col>
</el-row>
</el-main>
<el-footer></el-footer>
</el-container>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: 'App' name: "App"
}; };
</script> </script>
<style lang="scss"> <style lang="scss">
*{ * {
font-family: '微软雅黑'; font-family: "微软雅黑";
} }
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
background-color: #f7f7f7 !important; background-color: #f7f7f7 !important;
#app{
display: flex;
}
} }
</style> </style>
...@@ -9,11 +9,10 @@ axios.interceptors.request.use((config) => { ...@@ -9,11 +9,10 @@ axios.interceptors.request.use((config) => {
return Promise.reject(error.response.data) return Promise.reject(error.response.data)
}) })
let version = "v1"
let path = { let path = {
// 开发 // 开发
development: `http://192.168.10.200:8009/projectName/${version}`, development: `http://192.168.10.200:8020/upaLogs`,
// 200 // 200
lan: `http://192.168.10.200:8009/projectName/${version}`, lan: `http://192.168.10.200:8009/projectName/${version}`,
// 测试 // 测试
......
...@@ -2,6 +2,7 @@ import Vue from 'vue'; ...@@ -2,6 +2,7 @@ import Vue from 'vue';
import Router from 'vue-router'; import Router from 'vue-router';
// import HelloWorld from '@/components/HelloWorld' // import HelloWorld from '@/components/HelloWorld'
import Index from '@/view/index'; import Index from '@/view/index';
import ButtonClick from '@/view/ButtonClick'
Vue.use(Router); Vue.use(Router);
...@@ -11,6 +12,11 @@ export default new Router({ ...@@ -11,6 +12,11 @@ export default new Router({
path: '/', path: '/',
name: 'index', name: 'index',
component: Index component: Index
},
{
path: '/buttonClick',
name: 'buttonClick',
component: ButtonClick,
} }
] ]
}); });
<template>
<div>
<el-button @click="successfulClick">正常响应</el-button>
<el-button @click="errorClick">异常响应</el-button>
</div>
</template>
<script>
/**
* @date 2019.10.24
* @author 潘亚楠
* @information button点击操作日志手机测试页
*/
import debug from 'debug';
console.log(debug);
export default {
name: 'ButtonClick',
methods: {
/**
* @date 2019.10.24
* @author 潘亚楠
* @information 服务器正常响应的点击事件
*/
successfulClick() {
},
/**
* @date 2019.10.24
* @author 潘亚楠
* @information 服务器异常响应的点击事件
*/
errorClick() {
}
}
}
</script>
<style>
</style>
\ No newline at end of file
<template> <template>
<div id="index"> <div id="index">
<el-button @click="$router.push('buttonClick')">按钮测试</el-button>
<qj-demo message="基础组件说明"></qj-demo> <qj-demo message="基础组件说明"></qj-demo>
<qj-business msg1="业务组件说明"></qj-business> <qj-business msg1="业务组件说明"></qj-business>
</div> </div>
...@@ -12,8 +13,8 @@ ...@@ -12,8 +13,8 @@
* @date 2019-05-17 * @date 2019-05-17
*/ */
export default { export default {
mounted () { mounted() {
console.log('测试:', this); console.log("测试:", this);
} }
}; };
</script> </script>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论