hookehuyr

配置测试调整

...@@ -59,7 +59,7 @@ const config = { ...@@ -59,7 +59,7 @@ const config = {
59 750: 1, 59 750: 1,
60 828: 1.81 / 2 60 828: 1.81 / 2
61 }, 61 },
62 - alias: { 62 + alias: { // 配置目录别名
63 "@/utils": path.resolve(__dirname, "../src/utils"), 63 "@/utils": path.resolve(__dirname, "../src/utils"),
64 "@/vant": path.resolve(__dirname, "../src/components/vant-weapp"), 64 "@/vant": path.resolve(__dirname, "../src/components/vant-weapp"),
65 "@/components": path.resolve(__dirname, "../src/components"), 65 "@/components": path.resolve(__dirname, "../src/components"),
...@@ -84,9 +84,23 @@ const config = { ...@@ -84,9 +84,23 @@ const config = {
84 } 84 }
85 } 85 }
86 }], 86 }],
87 - '@tarojs/plugin-html' 87 + '@tarojs/plugin-html',
88 + ['@tarojs/plugin-inject', {
89 + thirdPartyComponents: {
90 + // 为 `van-empty` 组件的 image 属性设置默认值 'default'
91 + 'van-empty': {
92 + 'image': "'default'"
93 + },
94 + 'van-dialog': {
95 + 'title': "'default'",
96 + 'message': "'default'",
97 + 'confirmButtonColor': "'default'",
98 + }
99 + }
100 + }]
88 ], 101 ],
89 - defineConstants: { 102 + defineConstants: { // 配置全局变量
103 + AUTHOR: JSON.stringify('hookehuyr')
90 }, 104 },
91 copy: { 105 copy: {
92 patterns: handleGetPatterns(vantComponentNames), 106 patterns: handleGetPatterns(vantComponentNames),
......
This diff could not be displayed because it is too large.
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
40 "@tarojs/plugin-framework-react": "^3.4.10", 40 "@tarojs/plugin-framework-react": "^3.4.10",
41 "@tarojs/plugin-framework-vue3": "3.4.10", 41 "@tarojs/plugin-framework-vue3": "3.4.10",
42 "@tarojs/plugin-html": "^3.4.10", 42 "@tarojs/plugin-html": "^3.4.10",
43 + "@tarojs/plugin-inject": "^1.0.2",
43 "@tarojs/plugin-platform-weapp": "^3.4.10", 44 "@tarojs/plugin-platform-weapp": "^3.4.10",
44 "@tarojs/runtime": "3.4.10", 45 "@tarojs/runtime": "3.4.10",
45 "@tarojs/taro": "3.4.10", 46 "@tarojs/taro": "3.4.10",
...@@ -56,6 +57,7 @@ ...@@ -56,6 +57,7 @@
56 "devDependencies": { 57 "devDependencies": {
57 "@babel/core": "^7.8.0", 58 "@babel/core": "^7.8.0",
58 "@tarojs/mini-runner": "3.4.10", 59 "@tarojs/mini-runner": "3.4.10",
60 + "@tarojs/plugin-mini-ci": "^3.5.7",
59 "@tarojs/webpack-runner": "3.4.10", 61 "@tarojs/webpack-runner": "3.4.10",
60 "@types/webpack-env": "^1.13.6", 62 "@types/webpack-env": "^1.13.6",
61 "babel-preset-taro": "3.4.10", 63 "babel-preset-taro": "3.4.10",
......
1 <!-- 1 <!--
2 * @Date: 2022-09-19 14:11:06 2 * @Date: 2022-09-19 14:11:06
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2022-11-02 13:43:51 4 + * @LastEditTime: 2022-11-02 16:44:13
5 * @FilePath: /swx/src/pages/index/index.vue 5 * @FilePath: /swx/src/pages/index/index.vue
6 * @Description: 首页 6 * @Description: 首页
7 --> 7 -->
...@@ -41,7 +41,7 @@ import Toast from '@/components/vant-weapp/toast/toast'; ...@@ -41,7 +41,7 @@ import Toast from '@/components/vant-weapp/toast/toast';
41 import { useDidShow } from '@tarojs/taro' 41 import { useDidShow } from '@tarojs/taro'
42 // TAG: 模拟onShow事件 42 // TAG: 模拟onShow事件
43 useDidShow(() => { 43 useDidShow(() => {
44 - console.warn('onShow') 44 + // console.warn(AUTHOR)
45 }) 45 })
46 46
47 const goTo = (id) => { 47 const goTo = (id) => {
......
This diff could not be displayed because it is too large.