Commit a6791c86 by lishengfu

update

parent fe92fa99
......@@ -10237,6 +10237,11 @@
"resolved": "https://registry.npmjs.org/vue/-/vue-2.6.11.tgz",
"integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ=="
},
"vue-axios": {
"version": "2.1.5",
"resolved": "https://registry.npmjs.org/vue-axios/-/vue-axios-2.1.5.tgz",
"integrity": "sha512-th5xVbInVoyIoe+qY+9GCflEVezxAvztD4xpFF39SRQYqpoKD2qkmX8yv08jJG9a2SgNOCjirjJGSwg/wTrbmA=="
},
"vue-class-component": {
"version": "7.2.3",
"resolved": "https://registry.npmjs.org/vue-class-component/-/vue-class-component-7.2.3.tgz",
......
......@@ -11,6 +11,7 @@
"core-js": "^3.6.4",
"vant": "^2.8.3",
"vue": "^2.6.11",
"vue-axios": "^2.1.5",
"vue-class-component": "^7.2.3",
"vue-property-decorator": "^8.4.1",
"vue-router": "^3.1.6",
......
<template>
<div id="app">
<HelloWorld/>
<router-view />
</div>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import HelloWorld from './components/HelloWorld.vue';
@Component({
components: {
HelloWorld,
},
})
export default class App extends Vue {}
export default class App extends Vue {
}
</script>
<style lang="less">
......
// import axios from "axios";
// const option = {
// lock: true,
// //text: "Loading",
// //spinner: "el-icon-loading",
// fullscreen:true,
// background: "rgba(0, 0, 0, 0)",
// //customClass:"loading-style"
// };
// let loadingInstance;
// //let configBaseUrl = process.env.VUE_APP_ORG_API_BASEURL;
// //console.log("==============>",configBaseUrl)
// let baseUrl = process.env.VUE_APP_ORG_API_BASEURL;
// // switch (process.env.NODE_ENV) {
// // case "development":
// // baseUrl = "http://192.168.1.161:7771"; //这里是本地的请求url
// // break;
// // case "alpha":
// // baseUrl = "http://192.168.1.161:7771"; //这里是测试环境中的url
// // break;
// // case "production":
// // baseUrl = "http://192.168.1.161:7771"; //生产环境url
// // break;
// // }
// //baseUrl = configBaseUrl;
// // 创建 axios 实例
// let http = axios.create({
// timeout: 60000,
// baseURL: baseUrl
// });
// // request拦截器
// http.interceptors.request.use(
// config => {
// loadingInstance = Loading.service(option);
// return config;
// },
// error => {
// loadingInstance.close();
// return Promise.reject(error); // reject这个错误信息
// }
// );
// // 添加响应拦截器
// http.interceptors.response.use(
// response => {
// //console.log("response====>",response)
// loadingInstance.close();
// let { data } = response;
// return data;
// },
// error => {
// loadingInstance.close();
// console.log(error);
// let info = {};
// let { status } = error.response;
// info = {
// code: status,
// data: "",
// msg: "系统出现未知错误"
// };
// return info;
// }
// );
// /**
// * 创建统一封装过的 axios 实例
// * @return {AxiosInstance}
// */
// export default function () {
// return http;
// }
// import axios from "./axios";
// let instance=axios();
// export default{
// get(url,params,headers){
// if(params){
// options.params=params;
// }
// }
// }
\ No newline at end of file
......@@ -12,9 +12,9 @@ Vue.use(VueRouter)
component: Home
},
{
path: '/select-identity',
path: '/SelectIdentity',
name: 'SelectIdentity',
component: SelectIdentity
component: () => import("../views/select-identity.vue")
}
]
......
<template>
<div class="home">
<img alt="Vue logo" src="../assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
</div>
</template>
<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
export default {
name: 'Home',
components: {
HelloWorld
}
name: 'Home'
}
</script>
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 sign in to comment