| | |
| | | }, |
| | | "peerDependencies": { |
| | | "@life-payment/core-vue": "*", |
| | | "@nutui/icons-vue-taro": "*", |
| | | "@nutui/nutui-taro": "*", |
| | | "@tanstack/vue-query": "4.35.3", |
| | | "@tarojs/components": "*", |
| | |
| | | export default defineConfig({ |
| | | plugins: [moduleTools()], |
| | | buildPreset: 'npm-library', |
| | | // buildConfig: { |
| | | // define: { |
| | | // 'process.env.NODE_ENV': process.env.NODE_ENV || 'production', |
| | | // }, |
| | | // }, |
| | | buildConfig: { |
| | | define: { |
| | | Global_BaseURL: 'https://jfapi.81812333.com', |
| | | }, |
| | | }, |
| | | }); |
| | |
| | | this.ctx = ctx; |
| | | this.request = Request.create({ |
| | | ...axiosConfig, |
| | | // baseURL: process.env.NODE_ENV === 'development' ? '/' : 'https://api.81812333.com', |
| | | //@ts-ignore |
| | | baseURL: typeof Global_BaseURL !== 'undefined' ? Global_BaseURL : axiosConfig.baseURL, |
| | | requestInterceptors: [ |
| | | [ |
| | | (config) => { |
| | |
| | | originalAvatarUrl?: string |
| | | } |
| | | } |
| | | |
| | | declare const Global_BaseURL: string; |