Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
swx_weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-11-02 16:53:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
46076433cefa6518ee114b9d80612c7e2b3b9cc1
46076433
1 parent
60c9a78b
配置测试调整
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
5 deletions
config/index.js
package-lock.json
package.json
src/pages/index/index.vue
yarn.lock
config/index.js
View file @
4607643
...
...
@@ -59,7 +59,7 @@ const config = {
750: 1,
828: 1.81 / 2
},
alias: {
alias: {
// 配置目录别名
"@/utils": path.resolve(__dirname, "../src/utils"),
"@/vant": path.resolve(__dirname, "../src/components/vant-weapp"),
"@/components": path.resolve(__dirname, "../src/components"),
...
...
@@ -84,9 +84,23 @@ const config = {
}
}
}],
'@tarojs/plugin-html'
'@tarojs/plugin-html'
,
[
'@tarojs/plugin-inject'
,
{
thirdPartyComponents
:
{
// 为 `van-empty` 组件的 image 属性设置默认值 'default'
'van-empty'
:
{
'image'
:
"'default'"
},
'van-dialog'
:
{
'title'
:
"'default'"
,
'message'
:
"'default'"
,
'confirmButtonColor'
:
"'default'"
,
}
}
}]
],
defineConstants
:
{
defineConstants
:
{
// 配置全局变量
AUTHOR
:
JSON
.
stringify
(
'hookehuyr'
)
},
copy
:
{
patterns
:
handleGetPatterns
(
vantComponentNames
),
...
...
package-lock.json
View file @
4607643
This diff could not be displayed because it is too large.
package.json
View file @
4607643
...
...
@@ -40,6 +40,7 @@
"@tarojs/plugin-framework-react"
:
"^3.4.10"
,
"@tarojs/plugin-framework-vue3"
:
"3.4.10"
,
"@tarojs/plugin-html"
:
"^3.4.10"
,
"@tarojs/plugin-inject"
:
"^1.0.2"
,
"@tarojs/plugin-platform-weapp"
:
"^3.4.10"
,
"@tarojs/runtime"
:
"3.4.10"
,
"@tarojs/taro"
:
"3.4.10"
,
...
...
@@ -56,6 +57,7 @@
"devDependencies"
:
{
"@babel/core"
:
"^7.8.0"
,
"@tarojs/mini-runner"
:
"3.4.10"
,
"@tarojs/plugin-mini-ci"
:
"^3.5.7"
,
"@tarojs/webpack-runner"
:
"3.4.10"
,
"@types/webpack-env"
:
"^1.13.6"
,
"babel-preset-taro"
:
"3.4.10"
,
...
...
src/pages/index/index.vue
View file @
4607643
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-02 1
3:43:51
* @LastEditTime: 2022-11-02 1
6:44:13
* @FilePath: /swx/src/pages/index/index.vue
* @Description: 首页
-->
...
...
@@ -41,7 +41,7 @@ import Toast from '@/components/vant-weapp/toast/toast';
import { useDidShow } from '@tarojs/taro'
// TAG: 模拟onShow事件
useDidShow(() => {
console.warn('onShow'
)
// console.warn(AUTHOR
)
})
const goTo = (id) => {
...
...
yarn.lock
View file @
4607643
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment