更新初级版本
This commit is contained in:
@@ -4,7 +4,7 @@ import App from './App'
|
||||
import Vue from 'vue'
|
||||
import './uni.promisify.adaptor'
|
||||
Vue.config.productionTip = false
|
||||
Vue.prototype.$url = 'http://www.d.com'
|
||||
Vue.prototype.$url = 'http://api.zzzhengyangtang.cn'
|
||||
Vue.prototype.apiUrl =function apiurl(promise, Loading = true){
|
||||
let token=uni.getStorageSync('token')
|
||||
promise.header={
|
||||
@@ -55,7 +55,7 @@ app.$mount()
|
||||
import { createSSRApp } from 'vue'
|
||||
|
||||
// 定义全局基础URL
|
||||
const baseUrl = 'http://www.d.com'
|
||||
const baseUrl = 'http://api.zzzhengyangtang.cn'
|
||||
|
||||
// 封装Vue3版本的apiUrl方法
|
||||
function apiUrl(promise, Loading = true) {
|
||||
|
||||
Reference in New Issue
Block a user