Browse Source

修复:百色中学已知问题

dev
科技小王子 4 months ago
parent
commit
4e8d59d313
  1. 4
      .env.development
  2. 25
      .gitignore
  3. 1
      .idea/modules.xml
  4. 1
      .idea/mp.iml
  5. 1
      .idea/vcs.xml
  6. 9
      src/views/cms/cmsWebsite/components/websiteEdit.vue
  7. 4
      src/views/passport/register/index.vue

4
.env.development

@ -1,10 +1,10 @@
VITE_APP_NAME=后台管理系统 VITE_APP_NAME=后台管理系统
VITE_SOCKET_URL=wss://server.gxwebsoft.com VITE_SOCKET_URL=wss://server.gxwebsoft.com
VITE_SERVER_URL=https://server.gxwebsoft.com/api VITE_SERVER_URL=https://server.gxwebsoft.com/api
#VITE_API_URL=https://cms-api.websoft.top/api
VITE_API_URL=https://cms-api.websoft.top/api
#VITE_SOCKET_URL=ws://127.0.0.1:9191 #VITE_SOCKET_URL=ws://127.0.0.1:9191
#VITE_SERVER_URL=http://127.0.0.1:8000/api #VITE_SERVER_URL=http://127.0.0.1:8000/api
VITE_API_URL=http://127.0.0.1:9000/api
#VITE_API_URL=http://127.0.0.1:9000/api
#/booking/bookingItem #/booking/bookingItem

25
.gitignore

@ -0,0 +1,25 @@
.DS_Store
node_modules
/dist
/dist-ssr
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
.pnpm-debug.log
.eslintcache
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

1
.idea/modules.xml

@ -2,6 +2,7 @@
<project version="4"> <project version="4">
<component name="ProjectModuleManager"> <component name="ProjectModuleManager">
<modules> <modules>
<module fileurl="file://$USER_HOME$/NutUI/bszx-react/.idea/bszx-react.iml" filepath="$USER_HOME$/NutUI/bszx-react/.idea/bszx-react.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/mp.iml" filepath="$PROJECT_DIR$/.idea/mp.iml" /> <module fileurl="file://$PROJECT_DIR$/.idea/mp.iml" filepath="$PROJECT_DIR$/.idea/mp.iml" />
</modules> </modules>
</component> </component>

1
.idea/mp.iml

@ -8,5 +8,6 @@
</content> </content>
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="bszx-react" />
</component> </component>
</module> </module>

1
.idea/vcs.xml

@ -2,5 +2,6 @@
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" /> <mapping directory="" vcs="Git" />
<mapping directory="$USER_HOME$/NutUI/bszx-react" vcs="Git" />
</component> </component>
</project> </project>

9
src/views/cms/cmsWebsite/components/websiteEdit.vue

@ -131,6 +131,7 @@
import { FileRecord } from '@/api/system/file/model'; import { FileRecord } from '@/api/system/file/model';
import { checkExistence } from '@/api/cms/cmsDomain'; import { checkExistence } from '@/api/cms/cmsDomain';
import { updateCmsDomain } from '@/api/cms/cmsDomain'; import { updateCmsDomain } from '@/api/cms/cmsDomain';
import {updateTenant} from "@/api/system/tenant";
// //
const isUpdate = ref(false); const isUpdate = ref(false);
@ -342,10 +343,14 @@
updateVisible(false); updateVisible(false);
updateCmsDomain({ updateCmsDomain({
websiteId: form.websiteId, websiteId: form.websiteId,
domain: `${localStorage.getItem('TenantId')}.wsdns.cn`
domain: `${localStorage.getItem('TenantId')}.shoplnk.cn`
}); });
localStorage.setItem('Domain', `${form.websiteCode}.wsdns.cn`);
updateTenant({
tenantName: `${form.websiteName}`
}).then(() => {})
localStorage.setItem('Domain', `${form.websiteCode}.shoplnk.cn`);
localStorage.setItem('WebsiteId', `${form.websiteId}`); localStorage.setItem('WebsiteId', `${form.websiteId}`);
localStorage.setItem('WebsiteName', `${form.websiteName}`);
message.destroy(); message.destroy();
message.success(msg); message.success(msg);
// window.location.reload(); // window.location.reload();

4
src/views/passport/register/index.vue

@ -559,8 +559,8 @@ const submit = () => {
goHome(); goHome();
}, 2000) }, 2000)
}) })
.catch((e: Error) => {
message.error(e.message);
.catch(() => {
message.error('该手机号码已经被注册');
loading.value = false; loading.value = false;
}); });
}) })

Loading…
Cancel
Save