Browse Source

【项目配置】

1.增加依赖配置
2.增加vscode运行配置
ChenYL 10 months ago
parent
commit
5a669be62f
4 changed files with 840 additions and 4 deletions
  1. 15 0
      .vscode/launch.json
  2. 815 3
      package-lock.json
  3. 3 0
      package.json
  4. 7 1
      src/pages.json

+ 15 - 0
.vscode/launch.json

@@ -0,0 +1,15 @@
+{
+    // 使用 IntelliSense 了解相关属性。 
+    // 悬停以查看现有属性的描述。
+    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "type": "node-terminal",
+            "name": "运行脚本: dev:mp-weixin",
+            "request": "launch",
+            "command": "npm run dev:mp-weixin",
+            "cwd": "${workspaceFolder}"
+        }
+    ]
+}

File diff suppressed because it is too large
+ 815 - 3
package-lock.json


+ 3 - 0
package.json

@@ -49,6 +49,7 @@
     "@dcloudio/uni-mp-weixin": "3.0.0-4040520250104002",
     "@dcloudio/uni-mp-xhs": "3.0.0-4040520250104002",
     "@dcloudio/uni-quickapp-webview": "3.0.0-4040520250104002",
+    "@dcloudio/uni-ui": "^1.5.7",
     "vue": "^3.4.21",
     "vue-i18n": "^9.1.9"
   },
@@ -59,6 +60,8 @@
     "@dcloudio/uni-stacktracey": "3.0.0-4040520250104002",
     "@dcloudio/vite-plugin-uni": "3.0.0-4040520250104002",
     "@vue/runtime-core": "^3.4.21",
+    "sass": "^1.84.0",
+    "sass-loader": "^10.1.1",
     "vite": "5.2.8"
   }
 }

+ 7 - 1
src/pages.json

@@ -1,5 +1,11 @@
 {
-	"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
+	"easycom": {
+		"autoscan": true,
+		"custom": {
+			"^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
+		}
+	},
+	"pages": [
 		{
 			"path": "pages/index/index",
 			"style": {

Some files were not shown because too many files changed in this diff