diff --git a/.gitignore b/.gitignore index 908df90..b2cc0a4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ node_modules/ unpackage/ dist/ +.history # local env files .env.local diff --git a/src/App.vue b/src/App.vue index 078c0d0..a789f9f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,7 +6,7 @@ console.log('App Launch') }, onShow() { - + console.log('App Show') }, onHide() { @@ -17,4 +17,4 @@ + diff --git a/src/main.js b/src/main.js new file mode 100644 index 0000000..d743e22 --- /dev/null +++ b/src/main.js @@ -0,0 +1,17 @@ +import Vue from 'vue' +import App from './App.vue' +import store from './store/index' + +Vue.config.productionTip = false +Vue.prototype.sendRequest = function(param){ + let _self = this, + url = param.url, + data = param.data, + header = param.header, + token = ''; + //拼接完整请求url + let requestUrl = this.baseUrl + url; +} + + +new App({store}).$mount() diff --git a/src/main.ts b/src/main.ts deleted file mode 100644 index c297f79..0000000 --- a/src/main.ts +++ /dev/null @@ -1,18 +0,0 @@ -import Vue from 'vue' -import App from './App.vue' - - -Vue.config.productionTip = false -Vue.prototype.sendRequest = function(param:any){ - let _self = this, - url = param.url, - data = param.data, - header = param.header, - token = ''; - //拼接完整请求url - let requestUrl = this.baseUrl + url; - - - -} -new App().$mount() diff --git a/src/pages/addArddess/addArddess.vue b/src/pages/addArddess/addArddess.vue index 565c241..1a1847e 100644 --- a/src/pages/addArddess/addArddess.vue +++ b/src/pages/addArddess/addArddess.vue @@ -30,7 +30,7 @@