{"id":22079815,"url":"https://github.com/stack-stark/vue3-demo","last_synced_at":"2025-06-21T11:06:02.344Z","repository":{"id":120723269,"uuid":"291423208","full_name":"stack-stark/vue3-demo","owner":"stack-stark","description":"vue3+antd-vue的demo","archived":false,"fork":false,"pushed_at":"2020-09-16T03:19:39.000Z","size":324,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T20:44:00.085Z","etag":null,"topics":["vue","vue3","vue3-composition-api","vue3-demo","vue3-typescript","vuejs"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stack-stark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-30T07:37:31.000Z","updated_at":"2021-08-02T00:59:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"ffcaa1f8-e92f-4e42-bd0c-1eb5fe025f3d","html_url":"https://github.com/stack-stark/vue3-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stack-stark/vue3-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-stark%2Fvue3-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-stark%2Fvue3-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-stark%2Fvue3-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-stark%2Fvue3-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stack-stark","download_url":"https://codeload.github.com/stack-stark/vue3-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-stark%2Fvue3-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261110603,"owners_count":23111063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vue","vue3","vue3-composition-api","vue3-demo","vue3-typescript","vuejs"],"created_at":"2024-11-30T23:11:23.096Z","updated_at":"2025-06-21T11:05:57.323Z","avatar_url":"https://github.com/stack-stark.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue3构建新的中后台\n\n## 启动\n`要使用yarn安装依赖,npm安装会报错无法启动`\n\n1.使用`yarn install` 命令安装npm包\n\n2.运行`yarn serve`\n\n3.打开`localhost:8080`;\n\n## 开发时代理修改\n修改`vue.config.js`中的`devServer`的`proxy`\n\n\n## 正式开发前需要完成的内容\n - [x] 1.配置开发,打包参数\n\n - [x] 2.配置各环境(test,prod)\n\n - [x] 3.开发时代理处理\n\n - [x] 4.antd引入\n\n - [x] 5.http请求封装\n\n - [x] 6.状态页(404, 500...)\n\n - [ ] 7.登录页\n\n\n## 需要封装的组件or功能\n\n - [X] 1.路由tab缓存\n\n - [] 2.菜单及路由权限处理\n\n - [] 3.通用表格组件封装\n\n - [] 4.上传组件封装\n\n - [] 5.websocket封装\n\n - [] 6.打包可接受主题色参数\n\n - [X] 7.多语言支持\n\n - [] 8.message封装\n\n - [] 9.树形组件\n\n## 多语言\n1.在`src\\i18n\\languages`对应的语言文件下配置相关文案,\n``` ts\n// enUS.ts\nexport const enUS = {\n    named: 'named',\n}\n\n// zhCN.ts\nexport const zhCN = {\n    named: '姓名',\n}\n\n// zhTW.ts\nexport const zhTW = {\n    named: '姓名',\n}\n```\n\n2.在页面中使用\n``` html\n\u003cdiv\u003e\n  {{ $t(\"named\") }}\n\u003c/div\u003e\n\u003c!-- 或者 --\u003e\n\u003ci18n-t keypath=\"named\"\u003e\n    \u003ctemplate #name\u003e\n        \u003cspan\u003e姓名\u003c/span\u003e\n    \u003c/template\u003e\n\u003c/i18n-t\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstack-stark%2Fvue3-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstack-stark%2Fvue3-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstack-stark%2Fvue3-demo/lists"}