# simpleDream **Repository Path**: Niu_efei/simple-dream ## Basic Information - **Project Name**: simpleDream - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-20 - **Last Updated**: 2024-11-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### $\color{#999}{*版本要求 node v16以上}$ # 安装 `npm i` # 启动 `npm run dev` # 生产 `npm run build` # 目录 hc-base-front-frame ├─public | └favicon.ico ├─src | ├─api | | ├─index.js | | ├─model | | | └auth.js | ├─assets | | ├─base.css | | └main.css | ├─assets | | ├─base.css | | └main.css | ├─components | | ├─hcLang | | | └lang.vue | ├─config | | ├─index.js | | ├─route.js | | └upload.js | ├─language | | ├─en.json | | ├─index.ts | | ├─pt.json | | └zh.json | ├─router | | ├─index.js | | └systemRouter.js | ├─stores | | ├─counter.js | | ├─index.js | | └user.js | ├─utils | | ├─error.js | | ├─local.ts | | ├─request.js | | ├─tool.js | | └util.js | ├─views | | ├─test | | | └index.vue | | ├─other | | | ├─404.vue | | | └empty.vue | | ├─login | | | └index.vue | | ├─index | | | └index.vue | ├─App.vue | ├─main.js ├─.eslintignore ├─.eslintrc-auto-import.json ├─.eslintrc.js ├─.prettierrc.js ├─auto-imports.d.ts ├─index.html ├─package-lock.json ├─package.json ├─README.md ├─tsconfig.json ├─vite.config.js # 子仓库管理 ## 初始化项目方式 ### 1.拉取基础项目时同时初始化并拉取子模块的代码,可以使用 --recursive ``` git clone --recursive http://gitlab.gzhaochuan.com:3100/competence/frontend/main-forontend.git ``` ### 2.更新远程仓库地址为新项目仓库地址 ``` git remote set-url origin http://gitlab.gzhaochuan.com:3100/xxx.git ``` ### 3.查看新地址是否设置成功,再推送 ``` git remote -v git push ``` --- ## 添加子模块 ``` git submodule add http://gitlab.gzhaochuan.com:3100/competence/frontend/iot.git ``` --- ## 更新子模块 ### 更新所有子模块 ``` git submodule init git submodule update --recursive --remote ``` ### 更新指定子模块,切换到对应的目录 ``` cd iot git pull origin master ``` --- ## 删除子模块 ### 1.删除子模块文件夹 ``` git rm -r iot ``` ### 2.删除.gitmodules 文件中相关子模块的信息,类似于: ``` [submodule "iot"] path = iot url = http://gitlab.gzhaochuan.com:3100/competence/frontend/iot.git ``` ### 3.删除.git/config 中相关子模块信息,类似于: ``` [submodule "iot"] url = http://gitlab.gzhaochuan.com:3100/competence/frontend/iot active = true ``` ### 4.删除.git 文件夹中的相关子模块文件 ``` rm -rf .git/modules/iot ```