This commit is contained in:
oneao committed 2026-03-18 21:22:57 +08:00
1 parent 46f6bcc5f8
commit 6c20d0c80d
10 files changed
+194 -17

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="ai-demo" />
</profile>
</annotationProcessing>
</component>
</project>
+25
View File
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="https://repo.maven.apache.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="https://maven.aliyun.com/repository/public" />
</remote-repository>
</component>
</project>
+83
View File
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="57c6b7cb-dfe9-4ef0-a839-44640078c4db" name="Changes" comment="" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../.." />
</component>
<component name="MavenImportPreferences">
<option name="generalSettings">
<MavenGeneralSettings>
<option name="localRepository" value="D:\data\maven-repository" />
<option name="userSettingsFile" value="D:\devtool\maven\apache-maven-3.9.11\conf\settings.xml" />
</MavenGeneralSettings>
</option>
</component>
<component name="ProjectColorInfo"><![CDATA[{
"associatedIndex": 0
}]]></component>
<component name="ProjectId" id="3B4WeoSJ6hbOtn69mZjcFoJWHtB" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"Application.Main.executor": "Run",
"ModuleVcsDetector.initialDetectionPerformed": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"git-widget-placeholder": "master",
"kotlin-language-version-configured": "true",
"onboarding.tips.debug.path": "D:/workspace/code/ai-demo/src/main/java/org/example/Main.java",
"project.structure.last.edited": "Project",
"project.structure.proportion": "0.15",
"project.structure.side.proportion": "0.0",
"settings.editor.selected.configurable": "MavenSettings"
}
}]]></component>
<component name="RunManager">
<configuration name="Main" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="org.example.Main" />
<module name="ai-demo" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="org.example.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<recent_temporary>
<list>
<item itemvalue="Application.Main" />
</list>
</recent_temporary>
</component>
<component name="SharedIndexes">
<attachedChunks>
<set>
<option value="bundled-jdk-9823dce3aa75-bf35d07a577b-intellij.indexing.shared.core-IU-252.26830.84" />
</set>
</attachedChunks>
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="57c6b7cb-dfe9-4ef0-a839-44640078c4db" name="Changes" comment="" />
<created>1773748923351</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1773748923351</updated>
</task>
<servers />
</component>
</project>
Binary file not shown.
+1 -1
View File
@@ -6,7 +6,7 @@ import { useUserStore } from './store'
const userStore = useUserStore()
onLaunch(() => {
userStore.requireLogin()
// userStore.requireLogin()
})
onMounted(() => {
@@ -0,0 +1,49 @@
<script lang="ts" setup>
</script>
<template>
<view class="container">
<view class="item">
<sar-tag theme="primary" mark size="large">
1、集装箱照片
</sar-tag>
<view
style="padding: 32rpx;"
>
<sar-input
placeholder="请输入"
/>
<view />
</view>
</view>
<view class="item">
<sar-tag theme="primary" mark size="large">
2、装货照片
</sar-tag>
</view>
<view class="actions">
<sar-button round>
确定提交
</sar-button>
</view>
</view>
</template>
<style lang="scss" scoped>
.container {
display: flex;
flex-direction: column;
}
.item {
padding: 16rpx 0rpx;
}
.actions {
padding: 36rpx;
margin-top: 32rpx;
}
</style>
+9 -2
View File
@@ -2,8 +2,8 @@
"globalStyle": {
"navigationStyle": "default",
"navigationBarTitleText": "App",
"navigationBarBackgroundColor": "#4d80f0",
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black",
"backgroundColor": "#FFFFFF"
},
"easycom": {
@@ -81,6 +81,13 @@
"navigationBarTitleText": "修改密码",
"navigationStyle": "default"
}
},
{
"path": "upload/index",
"style": {
"navigationBarTitleText": "集装箱装货采集",
"navigationStyle": "default"
}
}
]
}
@@ -5,7 +5,7 @@ import { useUserStore } from '@/store'
const userStore = useUserStore()
onShow(() => {
userStore.requireLogin()
// userStore.requireLogin()
})
function handleLoginOut() {
@@ -4,7 +4,7 @@ import { useUserStore } from '@/store'
const userStore = useUserStore()
onShow(() => {
userStore.requireLogin()
// userStore.requireLogin()
})
const swiperCurrent = ref(0)
@@ -8,21 +8,21 @@ export const navigateToInterceptor = {
invoke(args: UniApp.NavigateToOptions) {
const userStore = useUserStore()
// 白名单直接放行
if (whiteList.some(path => args.url.startsWith(path))) {
if (args.url === '/pages-sub/login/index') {
userStore.reset()
}
// // 白名单直接放行
// if (whiteList.some(path => args.url.startsWith(path))) {
// if (args.url === '/pages-sub/login/index') {
// userStore.reset()
// }
return args
}
// return args
// }
// 调用 requireLogin,如果未登录,会自动提示并跳转
const ok = userStore.requireLogin()
// // 调用 requireLogin,如果未登录,会自动提示并跳转
// const ok = userStore.requireLogin()
if (!ok) {
return false // 阻止路由跳转
}
// if (!ok) {
// return false // 阻止路由跳转
// }
return args // 已登录则放行
},