diff --git a/src/pages.json b/src/pages.json
index 2be57b9..61a0459 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -1,6 +1,12 @@
{
"pages": [
// #ifdef MP-WEIXIN
+ {
+ "path": "pages/weixinHome/index",
+ "style": {
+ "navigationBarTitleText": "图图岛"
+ }
+ },
{
"path": "pages/index/index",
"style": {
diff --git a/src/pages/taskDetails/components/MyBackfill.vue b/src/pages/taskDetails/components/MyBackfill.vue
index e3f2079..01f8cc7 100644
--- a/src/pages/taskDetails/components/MyBackfill.vue
+++ b/src/pages/taskDetails/components/MyBackfill.vue
@@ -32,7 +32,9 @@ const success = async () => {
watch(
() => [data, current],
() => {
- content.push(...data.children.back[current.value].content_arr);
+ if (data.children.back[current.value]?.content_arr) {
+ content.push(...data.children.back[current.value].content_arr);
+ }
},
{deep: true, immediate: true}
)
diff --git a/src/pages/weixinHome/index.vue b/src/pages/weixinHome/index.vue
new file mode 100644
index 0000000..7ad091e
--- /dev/null
+++ b/src/pages/weixinHome/index.vue
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+ 下载
+
+
+
+
+
diff --git a/src/utils/uils.js b/src/utils/uils.js
index 946db09..b033a79 100644
--- a/src/utils/uils.js
+++ b/src/utils/uils.js
@@ -152,7 +152,7 @@ export const uploadFile = ({count}) => {
token: UserStore.token
},
success: ({data}) => {
- res(JSON.parse(data).data);
+ res(JSON.parse(data));
},
fail: (err) => {
showToast(err.errMsg);
diff --git a/vite.config.js b/vite.config.js
index bdcaee9..cc22007 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -1,6 +1,6 @@
import {defineConfig} from 'vite';
import uni from '@dcloudio/vite-plugin-uni';
-// import {UnifiedViteWeappTailwindcssPlugin} from 'weapp-tailwindcss/vite';
+import {UnifiedViteWeappTailwindcssPlugin} from 'weapp-tailwindcss/vite';
import tailwindcss from '@tailwindcss/postcss'
export default defineConfig({
@@ -10,9 +10,9 @@ export default defineConfig({
defineModel: true,
}
}),
- // UnifiedViteWeappTailwindcssPlugin({
- // rem2rpx: true,
- // })
+ UnifiedViteWeappTailwindcssPlugin({
+ rem2rpx: true,
+ })
],
css: {
postcss: {