This commit is contained in:
Your Name
2026-03-11 09:49:47 +08:00
parent 02ae537b4c
commit 38ad60f4bb
290 changed files with 36917 additions and 123 deletions
+4 -3
View File
@@ -1,10 +1,11 @@
import App from './App'
var baseUrl ='http://api.zzzhengyangtang.cn';
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
Vue.prototype.$url = 'http://api.zzzhengyangtang.cn'
Vue.prototype.$url =baseUrl
Vue.prototype.apiUrl =function apiurl(promise, Loading = true){
let token=uni.getStorageSync('token')
promise.header={
@@ -55,7 +56,7 @@ app.$mount()
import { createSSRApp } from 'vue'
// 定义全局基础URL
const baseUrl = 'http://api.zzzhengyangtang.cn'
// 封装Vue3版本的apiUrl方法
function apiUrl(promise, Loading = true) {