test: ios运行测试成功

This commit is contained in:
h_cg 2024-10-11 16:54:06 +08:00 committed by h_mo
parent d10833f861
commit 6585c1bdbe
3 changed files with 26 additions and 23 deletions

View File

@ -45,19 +45,19 @@
"dependencies": {
"@alova/adapter-uniapp": "^2.0.6",
"@alova/mock": "^2.0.6",
"@dcloudio/uni-app": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-app-plus": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-components": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-h5": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-i18n": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-mp-alipay": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-mp-baidu": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-mp-lark": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-mp-qq": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-app": "3.0.0-alpha-4030120241009001",
"@dcloudio/uni-app-plus": "3.0.0-alpha-4030120241009001",
"@dcloudio/uni-components": "3.0.0-alpha-4030120241009001",
"@dcloudio/uni-h5": "3.0.0-alpha-4030120241009001",
"@dcloudio/uni-i18n": "3.0.0-alpha-4030120241009001",
"@dcloudio/uni-mp-alipay": "3.0.0-alpha-4030120241009001",
"@dcloudio/uni-mp-baidu": "3.0.0-alpha-4030120241009001",
"@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-4030120241009001",
"@dcloudio/uni-mp-lark": "3.0.0-alpha-4030120241009001",
"@dcloudio/uni-mp-qq": "3.0.0-alpha-4030120241009001",
"@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4030120241009001",
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-4030120241009001",
"@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4030120241009001",
"@multiavatar/multiavatar": "^1.0.7",
"alova": "^3.0.20",
"crypto-js": "^4.2.0",
@ -68,10 +68,11 @@
"devDependencies": {
"@antfu/eslint-config": "^3.7.3",
"@dcloudio/types": "^3.4.12",
"@dcloudio/uni-automator": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-cli-shared": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-stacktracey": "3.0.0-alpha-4030120240925001",
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-4030120240925001",
"@dcloudio/uni-automator": "3.0.0-alpha-4030120241009001",
"@dcloudio/uni-cli-shared": "3.0.0-alpha-4030120241009001",
"@dcloudio/uni-stacktracey": "3.0.0-alpha-4030120241009001",
"@dcloudio/uni-uts-v1": "3.0.0-alpha-4030120241009001",
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-4030120241009001",
"@egoist/tailwindcss-icons": "^1.8.1",
"@iconify/json": "^2.2.258",
"@rollup/plugin-node-resolve": "^15.3.0",
@ -81,7 +82,7 @@
"@vitejs/plugin-vue": "^5.1.4",
"@vue/runtime-core": "^3.5.11",
"autoprefixer": "^10.4.20",
"commit-and-tag-version": "^12.4.4",
"commit-and-tag-version": "^12.5.0",
"eslint": "^9.12.0",
"eslint-plugin-format": "^0.1.2",
"globals": "^15.11.0",
@ -89,7 +90,7 @@
"picocolors": "^1.1.0",
"postcss": "^8.4.47",
"rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.79.4",
"sass": "^1.79.5",
"simple-git-hooks": "^2.11.1",
"tailwindcss": "^3.4.13",
"tsx": "^4.19.1",

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { onHide, onLaunch, onShow } from '@dcloudio/uni-app';
import { useUserStore } from '@/stores/modules/user';
import { onHide, onLaunch, onShow } from '@dcloudio/uni-app';
onLaunch(() => {
console.log('App Launch');

View File

@ -1,3 +1,4 @@
import type { UserConfig } from 'vite';
/**
* vite
* @see https://cn.vitejs.dev/config/
@ -5,11 +6,10 @@
*/
import { resolve } from 'node:path';
import process from 'node:process';
import type { UserConfig } from 'vite';
import { defineConfig, loadEnv } from 'vite';
import TransformPages from 'uni-read-pages-vite';
import postcssPlugins from './postcss.config';
import { defineConfig, loadEnv } from 'vite';
import { createVitePlugins, currentPlatform, resolveProxy } from './build';
import postcssPlugins from './postcss.config';
export default defineConfig(async ({ mode }) => {
const root = process.cwd();
@ -36,6 +36,8 @@ export default defineConfig(async ({ mode }) => {
preprocessorOptions: {
scss: {
additionalData: '@import "./src/uni.scss";',
api: 'modern-compiler', // 或 'modern' 表示使用现代编译器
silenceDeprecations: ['legacy-js-api'],
},
},
postcss: {