# uniappstock **Repository Path**: casepro/uniappstock ## Basic Information - **Project Name**: uniappstock - **Description**: 教学项目-uni-app项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-02-10 - **Last Updated**: 2023-12-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # stock ## 项目搭建 > 拉取项目到本地 ```git git clone https://gitee.com/douzhipro/uniappstock.git ``` > 下载依赖,有二种方式安装,二选一 ```sh npm install || yarn install ``` > 运行H5项目 ```sh npm run serve || yarn serve ``` > 打包H5项目 ```sh npm run build || yarn build ``` > 修改H5接口地址 ./vue.config.js ```js module.exports = { transpileDependencies: ['uview-ui'], // 以下为接口代理设置,但是仅在H5模式下面支持,如需要配置其他小程序的接口地址,请移步到 services/request.js devServer: { proxy: { '/stock': { target: 'http://www.fastadmin.com', //本地 // 如果接口跨域,需要进行这个参数配置 changeOrigin: true, pathRewrite: { '^stock': '' } } }, } } ```