diff --git a/.env b/.env index e38ebb5..3aa6b6f 100644 --- a/.env +++ b/.env @@ -1,7 +1,7 @@ # 所有环境的环境变量(命名必须以 VITE_ 开头) ## 项目标题 -VITE_APP_TITLE = MobVue +VITE_APP_TITLE = 微商店 ## 路由模式 hash 或 html5 VITE_ROUTER_HISTORY = hash diff --git a/.env.production b/.env.production index c102851..eda4c37 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,6 @@ # 生产环境的环境变量(命名必须以 VITE_ 开头) ## 后端接口地址(如果解决跨域问题采用 CORS 就需要写绝对路径) -VITE_BASE_URL = https://apifoxmock.com/m1/2930465-2145633-default/api/v1 - +VITE_BASE_URL = '/shop-api/api' ## 打包构建静态资源公共路径(例如部署到 https://un-pany.github.io/mobvue/ 域名下就需要填写 /mobvue/) -VITE_PUBLIC_PATH = /mobvue/ +VITE_PUBLIC_PATH = /shop/ diff --git a/.vscode/settings.json b/.vscode/settings.json index c5791ee..8bc8445 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -50,5 +50,9 @@ "pcss", "postcss" ], - "marscode.chatLanguage": "cn" + "marscode.chatLanguage": "cn", + "marscode.codeCompletionPro": { + "enableCodeCompletionPro": true + }, + "marscode.enableInlineCommand": true } diff --git a/public/favicon.png b/public/favicon.png index 3d2b04b..004d7e7 100644 Binary files a/public/favicon.png and b/public/favicon.png differ diff --git a/public/favicon1.png b/public/favicon1.png new file mode 100644 index 0000000..3d2b04b Binary files /dev/null and b/public/favicon1.png differ diff --git a/public/favicon2.png b/public/favicon2.png new file mode 100644 index 0000000..ade4b3a Binary files /dev/null and b/public/favicon2.png differ diff --git a/src/common/utils/path.ts b/src/common/utils/path.ts new file mode 100644 index 0000000..1a713e1 --- /dev/null +++ b/src/common/utils/path.ts @@ -0,0 +1 @@ +export const publicPath = import.meta.env.BASE_URL diff --git a/src/pages/product/ProductList.vue b/src/pages/product/ProductList.vue index 5425685..a55c259 100644 --- a/src/pages/product/ProductList.vue +++ b/src/pages/product/ProductList.vue @@ -1,4 +1,5 @@