Эх сурвалжийг харах

fix(config): 更新测试环境配置并修复uni-mp-vue组件问题

- 启用试用环境API配置'http://47.109.84.152:8081'
- 禁用'https://smqjh.api.zswlgz.com'配置
- 为@dcloudio/uni-mp-vue创建补丁以添加TransitionGroup模拟组件
- 在package.json中配置pnpm补丁依赖
zhangtao 2 өдөр өмнө
parent
commit
2b13a053e1

+ 5 - 0
package.json

@@ -131,6 +131,11 @@
     "vite": "^5.2.8",
     "vue-tsc": "^2.0.28"
   },
+  "pnpm": {
+    "patchedDependencies": {
+      "@dcloudio/uni-mp-vue": "patches/@dcloudio__uni-mp-vue.patch"
+    }
+  },
   "simple-git-hooks": {
     "pre-commit": "pnpm lint-staged"
   },

+ 18 - 0
patches/@dcloudio__uni-mp-vue.patch

@@ -0,0 +1,18 @@
+diff --git a/dist/vue.runtime.esm.js "b/D:/zswl/\345\270\202\346\260\221\350\257\267\351\233\206\345\220\210/city-gather/node_modules/.pnpm_patches/@dcloudio/uni-mp-vue@3.0.0-4060620250520001_tmp/dist/vue.runtime.esm.js"
+index 189422a1054d57f6e955a4bf2c841cbbe44738e4..72e1c19ca4ed906c9a8d2c1a0e6c4c93f90d9323 100644
+--- a/dist/vue.runtime.esm.js
++++ "b/D:/zswl/\345\270\202\346\260\221\350\257\267\351\233\206\345\220\210/city-gather/node_modules/.pnpm_patches/@dcloudio/uni-mp-vue@3.0.0-4060620250520001_tmp/dist/vue.runtime.esm.js"
+@@ -5844,4 +5844,13 @@ function createApp(rootComponent, rootProps = null) {
+ }
+ const createSSRApp = createApp;
+ 
++
++ function createMockComponent(name){
++  return{
++    setup(){
++      throw new Error(`${name} is a mock component and should not be rendered.2026-1-15-@zt`)
++    }
++  }
++ }
++export var TransitionGroup = /*#_PURE__*/ createMockComponent('TransitionGroup')
+ export { EffectScope, Fragment, ReactiveEffect, Text, c, callWithAsyncErrorHandling, callWithErrorHandling, computed, createApp, createPropsRestProxy, createSSRApp, createVNode, createVueApp, customRef, d, defineAsyncComponent, defineComponent, defineEmits, defineExpose, defineProps, devtoolsComponentAdded, devtoolsComponentRemoved, devtoolsComponentUpdated, diff, e, effect, effectScope, f, findComponentPropsData, gei, getCurrentInstance, getCurrentScope, getExposeProxy, guardReactiveProps, h, hasInjectionContext, hasQueueJob, inject, injectHook, invalidateJob, isInSSRComponentSetup, isProxy, isReactive, isReadonly, isRef, isShallow, j, logError, m, markRaw, mergeDefaults, mergeModels, mergeProps, n, nextTick$1 as nextTick, o, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, p, patch, provide, proxyRefs, pruneComponentPropsCache, queuePostFlushCb, r, reactive, readonly, ref, resolveComponent, resolveDirective, resolveFilter, s, setCurrentRenderingInstance, setTemplateRef, setupDevtoolsPlugin, shallowReactive, shallowReadonly, shallowRef, sr, stop, t, toHandlers, toRaw, toRef, toRefs, toValue, triggerRef, unref, updateProps, useAttrs, useCssModule, useCssVars, useModel, useSSRContext, useSlots, version, w, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withModifiers, withScopeId };

+ 2 - 2
src/config/index.ts

@@ -14,9 +14,9 @@ const mapEnvVersion = {
    */
   // trial: "http://192.168.1.166:8080/jeecg-boot",
   // trial: 'http://192.168.0.157:8080',
-  // trial: 'http://47.109.84.152:8081',
+  trial: 'http://47.109.84.152:8081',
   // trial: 'http://192.168.1.166:8080',
-  trial: 'https://smqjh.api.zswlgz.com',
+  // trial: 'https://smqjh.api.zswlgz.com',
   /**
    * 正式版
    */