Browse Source

为网络请求兼容小程序,添加相关的插件配置

dengdx 2 months ago
parent
commit
807c39f142
1 changed files with 1 additions and 1 deletions
  1. 1 1
      config/index.ts

+ 1 - 1
config/index.ts

@@ -17,7 +17,7 @@ export default defineConfig<'webpack5'>(async (merge) => {
     },
     },
     sourceRoot: 'src',
     sourceRoot: 'src',
     outputRoot: 'dist',
     outputRoot: 'dist',
-    plugins: [],
+    plugins: ['@tarojs/plugin-http'],
     defineConstants: {},
     defineConstants: {},
     copy: {
     copy: {
       patterns: [],
       patterns: [],