u
This commit is contained in:
1 parent
46f6bcc5f8
commit
6c20d0c80d
10 files changed
+194
-17
No files matched your search
Generated
+13
@@ -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>
|
||||||
Generated
+25
@@ -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>
|
||||||
Generated
+83
@@ -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.
@@ -6,7 +6,7 @@ import { useUserStore } from './store'
|
|||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
|
||||||
onLaunch(() => {
|
onLaunch(() => {
|
||||||
userStore.requireLogin()
|
// userStore.requireLogin()
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
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>
|
||||||
@@ -2,8 +2,8 @@
|
|||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationStyle": "default",
|
"navigationStyle": "default",
|
||||||
"navigationBarTitleText": "App",
|
"navigationBarTitleText": "App",
|
||||||
"navigationBarBackgroundColor": "#4d80f0",
|
"navigationBarBackgroundColor": "#fff",
|
||||||
"navigationBarTextStyle": "white",
|
"navigationBarTextStyle": "black",
|
||||||
"backgroundColor": "#FFFFFF"
|
"backgroundColor": "#FFFFFF"
|
||||||
},
|
},
|
||||||
"easycom": {
|
"easycom": {
|
||||||
@@ -81,6 +81,13 @@
|
|||||||
"navigationBarTitleText": "修改密码",
|
"navigationBarTitleText": "修改密码",
|
||||||
"navigationStyle": "default"
|
"navigationStyle": "default"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "upload/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "集装箱装货采集",
|
||||||
|
"navigationStyle": "default"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { useUserStore } from '@/store'
|
|||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
userStore.requireLogin()
|
// userStore.requireLogin()
|
||||||
})
|
})
|
||||||
|
|
||||||
function handleLoginOut() {
|
function handleLoginOut() {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { useUserStore } from '@/store'
|
|||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
userStore.requireLogin()
|
// userStore.requireLogin()
|
||||||
})
|
})
|
||||||
|
|
||||||
const swiperCurrent = ref(0)
|
const swiperCurrent = ref(0)
|
||||||
|
|||||||
@@ -8,21 +8,21 @@ export const navigateToInterceptor = {
|
|||||||
invoke(args: UniApp.NavigateToOptions) {
|
invoke(args: UniApp.NavigateToOptions) {
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
|
||||||
// 白名单直接放行
|
// // 白名单直接放行
|
||||||
if (whiteList.some(path => args.url.startsWith(path))) {
|
// if (whiteList.some(path => args.url.startsWith(path))) {
|
||||||
if (args.url === '/pages-sub/login/index') {
|
// if (args.url === '/pages-sub/login/index') {
|
||||||
userStore.reset()
|
// userStore.reset()
|
||||||
}
|
// }
|
||||||
|
|
||||||
return args
|
// return args
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 调用 requireLogin,如果未登录,会自动提示并跳转
|
// // 调用 requireLogin,如果未登录,会自动提示并跳转
|
||||||
const ok = userStore.requireLogin()
|
// const ok = userStore.requireLogin()
|
||||||
|
|
||||||
if (!ok) {
|
// if (!ok) {
|
||||||
return false // 阻止路由跳转
|
// return false // 阻止路由跳转
|
||||||
}
|
// }
|
||||||
|
|
||||||
return args // 已登录则放行
|
return args // 已登录则放行
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user